简体   繁体   中英

How to use Github webhooks

I need your help !

How to download the updated files in github project (not all files) using git hook api when project members commiting the new version ?

The idea is to register a webhook for your repo, which will emit a JSON payload that you would listen.
You can register a webhook for push event

The listener depends on your local environment.
For example, you have Introducing Gith - GitHub WebHooks For Node , which can filter the payloads by payload type: repository, branch, file or tag

You have simpler listeners, for instance on in python .
Again, the specifics of the listener and what you can do when you receive the message (like a git pull to download what has changed) depend on your particular environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM