3

Is it possible if my master branch in my github repo gets an update that my nodeJS server got a notification ? so i can do stuff with it ? like get the version tag and commit message ?

1 Answer 1

4

First you need to go to your repo, and click through this sequence:

Settings -> Webhooks & Services -> Add webhook

Then paste the url where github will submit data for each new commit. You can find examples of payload in example.

Then implement the logic needed in the backend to work with info about new commits.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.