Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Unstable Warner | |
// @namespace http://tampermonkey.net/ | |
// @version 0.5 | |
// @description Warn before merging unstable pull requests on GitHub | |
// @author Terence Tuhinanshu @rajadain | |
// @match https://github.com/**/pull/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Browse a waffle.io board where "Queue" and "In Progres" are the 2nd and 3rd columns. | |
// 2. Run this code in the developer console. | |
// 3. Copy the tab-separated data and paste into your spreadsheet of choice. | |
// Thanks to https://github.com/rajadain for the initial implementation | |
var rows = []; | |
$('#page > div > div.ng-scope > div > ui-view > div > div.board.js-board > span.ng-scope > div.board-body > div > div:nth-child(3) .card,#page > div > div.ng-scope > div > ui-view > div > div.board.js-board > span.ng-scope > div.board-body > div > div:nth-child(4) .card').each(function() { | |
var card = $(this), | |
url = card.attr('data-waffle-url').replace('api.github.com/repos', 'github.com'), |