1👍
For working with github repos hooks, first you need an application waiting for github calls. Then setup a page to configure customers hook to notify when that happens.
Check this link for decription how to configure hooks and what is epected message from github side.
The remains tasks is on your hand 🙂
Source:stackexchange.com