如何在GitHub上运行post-receive hook [英] How to run post-receive hook on GitHub

查看:86
本文介绍了如何在GitHub上运行post-receive hook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在GitHub中运行post-receive钩子?我知道有一个web-one,但我想编写一个自定义脚本,并且不想从github接收帖子。

how to run a post-receive hook in GitHub?. I know that there is the web-one but I want to write a custom script and do not want to receive a post from github.

推荐答案

Github的邮件接收钩子实际上只是 WebHooks,以便在存储库推送到时与Web服务器通信。

The post-receive hook of Github are actually only "WebHooks", to communicate with a web server whenever the repository is pushed to.

出于安全原因,您无法在GitHub服务器端运行任何操作。 / p>




For security reason, you cannot run anything on the GitHub server side.


当您向存储库进行推送时,我们会将POST JSON编码数据的有效载荷以及它所包含的推送和提交。

您可以使用 Requestbin 测试您的webhook
(检查 JSON实际上来自GitHub

这篇关于如何在GitHub上运行post-receive hook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆