是否有可能在github上的服务器端钩子上编写脚本 [英] Is it possible to write a script on a server side hook on github

查看:140
本文介绍了是否有可能在github上的服务器端钩子上编写脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在git服务器钩子上编写我自己的脚本。如果是,我该怎么做,我想检查某人何时推送到他们推送的分支上的服务器,以确保它们不会推送到错误的分支。

解决方案

不,您可以使用 GitHub webhook ,让GitHub发送 message(payload)到你的服务器(在这里你可以听到所说的消息并触发你自己的脚本)

但出于安全原因,GitHub服务器本身不会执行任何操作。


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.

解决方案

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.

这篇关于是否有可能在github上的服务器端钩子上编写脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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