Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Commit

Permalink
Removed my email from AwardsWorker... Added the MIT License, a little…
Browse files Browse the repository at this point in the history
… readme, and a roadmap.
  • Loading branch information
nvdrnz committed Apr 3, 2012
1 parent 420c761 commit b819f87
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
7 changes: 7 additions & 0 deletions LICENSE
@@ -0,0 +1,7 @@
Copyright (c) 2012 Paddy Foran, Nick DiRienzo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions README
@@ -0,0 +1,7 @@
gitwatch is a real-time git commit tracker, released under the MIT License. It was hacked together for UB Hacking 2012 by Paddy Foran (@paddyforan) and Nick DiRienzo (@nickdirienzo), and it's still under development.

Feel free to use it for your hackathon. All you have to do is create a new App Engine task, make a few modifications (i.e. change the admin email in AwardsWorker), and you're ready to deploy.

To have the repositories use gitwatch, have a post-receive URL point to yourgitwatchdomain.whatever/github and gitwatch takes care of the rest.

We plan on implementing more features to make gitwatch even more awesome, so check out the ROADMAP if you're curious.
12 changes: 12 additions & 0 deletions ROADMAP
@@ -0,0 +1,12 @@
Where we are:
Metrics measured on GitHub commits
Number of commits per person, per repo, and total
Number of curses per person, per repo, and total

What needs to be fixed:
Email notifications when a certain threshold of commits is reached

Where we plan on going:
More statistics of the commits
Real-time graph on the front end

14 changes: 7 additions & 7 deletions main.py
Expand Up @@ -345,19 +345,19 @@ def post(self):
author_email = self.request.get("author_email") author_email = self.request.get("author_email")


if global_commits == 100: if global_commits == 100:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 100th Commit", "%s (%s) deserves a prize for the 100th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 100th Commit", "%s (%s) deserves a prize for the 100th commit tonight." % (author_name, author_email))
elif global_commits == 150: elif global_commits == 150:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 150th Commit", "%s (%s) deserves a prize for the 150th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 150th Commit", "%s (%s) deserves a prize for the 150th commit tonight." % (author_name, author_email))
elif global_commits == 200: elif global_commits == 200:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 200th Commit", "%s (%s) deserves a prize for the 200th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 200th Commit", "%s (%s) deserves a prize for the 200th commit tonight." % (author_name, author_email))
elif global_commits == 250: elif global_commits == 250:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 250th Commit", "%s (%s) deserves a prize for the 250th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 250th Commit", "%s (%s) deserves a prize for the 250th commit tonight." % (author_name, author_email))
elif global_commits == 500: elif global_commits == 500:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 500th Commit", "%s (%s) deserves a prize for the 500th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 500th Commit", "%s (%s) deserves a prize for the 500th commit tonight." % (author_name, author_email))
elif global_commits == 750: elif global_commits == 750:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 750th Commit", "%s (%s) deserves a prize for the 750th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 750th Commit", "%s (%s) deserves a prize for the 750th commit tonight." % (author_name, author_email))
elif global_commits == 1000: elif global_commits == 1000:
mail.send_mail_to_admins("nvdirienzo@gmail.com", "UB Hacking 1000th Commit", "%s (%s) deserves a prize for the 1000th commit tonight." % (author_name, author_email)) mail.send_mail_to_admins("admin_email@example.com", "UB Hacking 1000th Commit", "%s (%s) deserves a prize for the 1000th commit tonight." % (author_name, author_email))


class MetricWorker(webapp.RequestHandler): class MetricWorker(webapp.RequestHandler):
def post(self): def post(self):
Expand Down

0 comments on commit b819f87

Please sign in to comment.