Permalink
Browse files

Initial import.

  • Loading branch information...
0 parents commit 6e890800654e5a400002be70373ef4ed0b303188 Frank Shearar committed Oct 18, 2012
Showing with 1,266 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 README.md
  3. +14 −0 manifest.json
  4. +11 −0 src/add-numeric-tags.js
  5. +1,233 −0 test/test-data.html
@@ -0,0 +1 @@
+*~
@@ -0,0 +1,7 @@
+#Keep track of your estimates more effectively with `github-planner`
+
+You're a heavy user of GitHub's issue tracker. You also want to be able to plan your work. You have the idea of using tags to record issue estimates.
+
+But you keep having to add up the totals to see your total estimate for your current milestone.
+
+`github-planner` simply displays the total of all numeric-valued tags, letting you instantly see the total estimate of all displayed issues.
@@ -0,0 +1,14 @@
+{
+ "name": "GitHub Planning Helper",
+ "version": "1.0",
+ "manifest_version": 1,
+ "description": "Add all numeric tags when viewing GitHub issues.",
+ "content_scripts": [
+ {
+ "matches": [
+ "http://github.com/*/*/issues*"
+ ],
+ "js": ["add-numeric-tags.js"]
+ }
+ ]
+}
@@ -0,0 +1,11 @@
+var labels = document.getElementsByClassName("filter-item");
+var total = 0.0;
+labels.forEach(function(element, index, array) {
+ var n = parseFloat(labels.body);
+ if (!n.isNan()) {
+ total += n;
+ }
+ });
+
+
+// the bodies of spans with class "label" that are numbers
Oops, something went wrong.

0 comments on commit 6e89080

Please sign in to comment.