DevOps Zone is brought to you in partnership with:

I am the founder and lead developer of Hibernate Envers, a Hibernate core module, which provides entity versioning/auditing capabilities. I am also one of the co-founders of SoftwareMill, a company specializing in delivering customized software solutions (http://softwaremill.com, "Extraordinary software as a standard"), based on Java and JBoss technologies. After work, apart from being involved in development of Envers, I work on several small open source projects, like ElasticMQ (simple message queue written in Scala with an SQS interface), projects around static analysis (using JSR 308 - Typestate Annotations/ Checkers Framework and FindBugs), and some CDI/Weld (not always portable) extensions, like autofactories or stackable security interceptors. I am also interested in new JVM-based languages, especially with functional elements (like Scala, JRuby) and frameworks built using them (like Lift), as well as improving the ways we use Dependency Injection. Adam is a DZone MVB and is not an employee of DZone and has posted 52 posts at DZone. You can read more from them at their website. View Full User Profile

Per-Commit E-mail GitHub Notifications

04.20.2013
| 3884 views |
  • submit to reddit

One thing that I miss in GitHub is the ability to get e-mail notifications on each push/commit. There is an option to set an e-mail notification address in the repository settings, but you can only specify a single, global address, and only the administrator can do it.

So while waiting for CodeBrag beta, which will bring a much better code-review experience, here’s how I get an e-mail notification on each push to the repositories I’m interested in.

The general idea is to get a RSS feed, and then use a simple IFTTT recipe to receive an e-mail whenever there’s a new item containing the words “pushed to” in the feed. The recipe looks like this:

2013-03-19_1616

There are two ways of getting an RSS feed with all the pushes. Firstly, you can get an RSS feed which aggregates pushes to all of the repositories that you are watching. Simply go to GitHub, log in, and in the upper-right corner you should see a “News Feed” link. Copy that to IFTTT and you’re done!

Secondly, you can get a feed for a single branch of a repository. Go to the repository you wish to get notifications for, and click on the “commits tab” (you should get a page like this one). Next to “Commit History”, there’s a feed symbol, which is a link to the branch’s feed.

Hope this will be useful!
Adam

Published at DZone with permission of Adam Warski, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)