Creating a GitHub hook for when a pull requested is opened

余生长醉 提交于 2019-12-08 07:16:37

问题


I'm trying to setup a GitHub hook which sends a POST to a url when a pull request is opened. This post should contain all the relevant details of the pull request, however I have added a url to the "Web-Hook URLS" on GitHub and tested that with request bin and found that it only sends a POST when I do git commit.

Is it possible to get GitHub to send a POST when I open a new pull request? Thanks in advance!


回答1:


Resolved by using this gist :

https://gist.github.com/bjhess/2726012



来源:https://stackoverflow.com/questions/15383790/creating-a-github-hook-for-when-a-pull-requested-is-opened

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!