Listening for Git Repo Changes

I want to write an application that provided information about the GitHub user account, and the repo will be notified whenever the repo is redirected to it. I know that I can basically save the state of the repo and periodically try it for changes, but I was wondering if there is a way to do this using the push architecture, and if so, how to do it. Thanks for any help!

EDIT. I know that maybe I'll do it like Heroku by doing this by clicking on a remote server, but the ideal functionality is to know when they click on Github.

+8
git push
source share
4 answers

If you want to perform an action when receiving push , 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 makes their script really simple is that they tell you POSTing JSON at the URL you specify. See their documentation .

+7
source share

One of the methods:

  • will not include the main repo participant for inputting anything.
  • allow you to determine what you want to control

use Yahoo Pipe (and then write an application that receives the result of the specified pipes), for example Friend Stalker pipe , described by nefariousdesign .

+1
source share

You should check the post-hooks

0
source share

Why not use GitHub Service Hooks?

Hooks after taking

0
source share

All Articles