gitee-webhook-pro
Gitee allows you to register Webhooks for your repositories. Each time an event occurs on your repository, whether it be pushing code, filling issues or creating pull requests, the webhook address you register can be configured to be pinged with details.
This library is a fork of github-webhook-handler and gitee-webhook-middleware . It is a small handler (or "middleware" if you must) for Node.js web servers that handles all the logic of receiving and verifying webhook requests from Gitee.
if you have any questions, please submit an issue.
Install
npm install gitee-webhook-pro
or
yarn add gitee-webhook-pro
Example
var http = var createHandler = // multiple-handlers 支持传入数组对象形式,监听一个端口根据path判断来执行不同的脚本(也可以传入一个对象)var handler = { var spawn = spawn; var child = ; var resp = ""; childstdout; childstdout;}http handler handler handler
License
MIT