Github nodeJS notification when master receives a commit

Is it possible if my master branch in my github registry gets an update that my nodeServer got notified? so can I do this? how to get the version tag and commit the message?

+3


source to share


1 answer


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

Settings -> Websites and Services -> Add Web Host



Then paste the url where github will post data for each new commit. Payload examples can be found in example .

Then, run the logic required in the backend to work with the new commit information.

+4


source







All Articles