This is a good start: 
https://wiki.icinga.org/display/community/GIT+Commit+Bot

And should probably be combined with this:  
https://gist.github.com/1821358 would not even need ruby

Greetings,
Kjellski