(Note: This is a repost from my Tumblr blog, but didn’t end up anywhere else. Wanted to make sure it’s reposted and saved.)
One of the neat things we do in the #cms channel (on Freenode, if you care) is send out notications for any commits that go into our svn repositories or our locally hosting git repositories.However, as we’re starting to move our newer development over to Github, I still wanted a way to do those announcements.I have a bot that I can send messages to with xmlrpc messages, which is how I have everything scripted currently. I decided to use the same idea, but with the only tool I have from github is posting a JSON packet to an http server, that’s what I do.1. Go to your repo. Hit the Admin button.
2. Select Service Hooks
3. Select Post-Receive URLs
4. Add http://www.cmsmadesimple.org/github-post.php as the URL. Hit Update Settings. If you want to make sure it works (and spam your friends in #cms), hit Test Hook.This will spam the folks in the channel, so please handle with care.