Created
December 7, 2010 12:19
-
-
Save dave1010/731740 to your computer and use it in GitHub Desktop.
Name GitHub issues with hours like [2] in the title and this will add them up
This file contains hidden or 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
This file contains hidden or 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
javascript:(function(){var%20o=0;$('.issue').each(function(){var%20t=$('.issue_title',this).text(),m%20=%20t.match(/\[([0-9]*)\]/),h=m?parseInt(m[1]):0;o+=h;});alert(o);})() | |
// This will add up all the numbers in square brackets in GitHub issues and alert the sum. | |
// Usage: | |
// copy the JavaScript above and either paste it into your URL bar or add it as a bookmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment