Last active
March 12, 2019 21:54
-
-
Save cfarm/6011b922f014eb2c5533 to your computer and use it in GitHub Desktop.
POINTS!!
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
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)}(); |
To use this as a bookmarklet:
- Bookmark this page in your browser
- Copy the code for
points-min.js
above - Edit the bookmark URL and paste the copied code into the URL field
- 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
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
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.