I wrote Captainhook with Kelsey Hightower to solve a Continuous Integration problem. It is general purpose enough that we decided to release it as Open Source. You can respond to a web hook by running any approved command. Commands are specified in a configuration file.