创建一个GitHub钩子,用于打开请求的请求时 [英] Creating a GitHub hook for when a pull requested is opened
问题描述
我试图设置一个GitHub钩子,当一个请求被打开时它会发送一个POST到一个url。这篇文章应该包含拉请求的所有相关细节,但是我已经在GitHub上的Web-Hook URLS中添加了一个url,并使用请求bin对其进行了测试,发现它只在我做git commit时发送POST。 / p>
当我打开新的请求时,是否可以让GitHub发送POST?
提前致谢!
使用这个要点解决:
https://gist.github.com/bjhess/2726012
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!
Resolved by using this gist :
https://gist.github.com/bjhess/2726012
这篇关于创建一个GitHub钩子,用于打开请求的请求时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!