Listening for Git Repo Changes
If you want to perform an action when a push
is received, you can write a script and use it as a post-receive
hook. GitHub supports git-hooks, but for obvious reasons they do not allow you to write a "custom script". What their script do is actually simple - they notify you by POSTing a JSON to an URL you specify. See their documentation.