Skip to content

Instantly share code, notes, and snippets.

@dave1010
Created December 7, 2010 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave1010/731740 to your computer and use it in GitHub Desktop.
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
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