【文件属性】:
文件名称:webhook:git webhook,接受push回调,触发shell脚本
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-07 22:02:33
JavaScript
git webhook
支持gitee和github
使用方法
需要提前安装node npm
git clone https://github.com/gogogoghost/webhook
cd webhook
npm i
打开config.json,默认配置如下
key 后台设置的密码
branch 需要监控的分支
script scripts目录下的脚本文件名
site gitee/github,不写则该条无效
port http端口(不写默认6666)
path post接口的路径(不写默认/post-receive)
{
"list": [{
"key": "6cbc2339-f02a-4dbb-9087-b0bcc12ed229",
"branch": "master",
"script": "projectA.sh",
"site": "g
【文件预览】:
webhook-master
----webhook.service(149B)
----scripts()
--------sample.sh(30B)
----config.json(316B)
----README.md(1KB)
----libs()
--------logger.js(228B)
----service.sh(698B)
----routers()
--------mainRouter.js(2KB)
----.gitignore(1KB)
----index.js(528B)
----package-lock.json(16KB)
----package.json(540B)