Skip to content

Instantly share code, notes, and snippets.

@cfarm
Last active March 12, 2019 21:54
Show Gist options
  • Save cfarm/6011b922f014eb2c5533 to your computer and use it in GitHub Desktop.
Save cfarm/6011b922f014eb2c5533 to your computer and use it in GitHub Desktop.
POINTS!!
javascript:!function(){for(var c=document.getElementsByClassName("IssueLabel"),a=0,d=0;d<c.length;d++){var b=c[d].innerText;-1!=b.indexOf("points: 13")?a+=13:-1!=b.indexOf("points: 8")?a+=8:-1!=b.indexOf("points: 5")?a+=5:-1!=b.indexOf("points: 3")?a+=3:-1!=b.indexOf("points: 2")?a+=2:-1!=b.indexOf("points: 1")&&(a+=1)}document.querySelector(".progress-bar").style.marginRight="10px";c=document.createElement("span");a=document.createTextNode(" "+a+" points!");c.appendChild(a);document.querySelector(".js-project-header h3").appendChild(c)}();
@cfarm
Copy link
Author

cfarm commented Nov 12, 2015

points should be added as labels with the following format: "points: 1" where 1 represents the number of points for each issue.

points should be one of the following numbers: 1, 2, 3, 5, 8

screen shot 2015-11-12 at 5 19 59 pm

Points
1 - one hour because it’s easy
2 - half day
3 - one-two days
5 - 3-4 days
8 - 1 week (half sprint) (max points for one github issue)
13 - 2 week sprint, too big so break it into multiple issues.

@cfarm
Copy link
Author

cfarm commented Nov 12, 2015

To use this as a bookmarklet:

  1. Bookmark this page in your browser
  2. Copy the code for points-min.js above
  3. Edit the bookmark URL and paste the copied code into the URL field
  4. When you're on a Github issues page with points labels (see above comment), click POINTS!! to tally your points and a lil message will appear above the issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment