Is it possible to write a script on a server side hook on github

我的未来我决定 提交于 2019-12-22 01:20:23

问题


Is it possible to write my own scripts on git server hooks.If yes how can i do that i wanted to check when someone pushes to the server on which branch they are pushing just to make sure they don't push to the wrong branch.


回答1:


No it is not. You can use GitHub webhook, for GitHub to send message (payload) to your server (where you can listen to said message and trigger your own script)

But nothing would be executed on a GitHub server itself, for security reason.



来源:https://stackoverflow.com/questions/26375086/is-it-possible-to-write-a-script-on-a-server-side-hook-on-github

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