Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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