node-github-webhook
Advanced tools
Comparing version 1.0.6 to 1.0.7
# node-github-webhook | ||
基于Node.js的Github Webhooks工具, 支持设置多个钩子. | ||
基于Node.js的Github Webhooks工具, 支持设置多个项目。 | ||
## 介绍 | ||
这个项目受到[github-webhook-handler](https://github.com/rvagg/github-webhook-handler)启发而来,它支持你为多个仓库同时设置钩子。 | ||
这个库受到[github-webhook-handler](https://github.com/rvagg/github-webhook-handler)启发而来,它支持你为多个仓库同时设置项目。 | ||
该项目基于Node.js,能帮你处理所有来自Github的webhooks请求。 | ||
该库基于Node.js,能帮你处理所有来自Github的webhooks请求。 | ||
@@ -23,7 +23,7 @@ 如果你想要了解Github支持的Webhooks事件,请看:[events](https://developer.github.com/webhooks/#events)。 | ||
var createHandler = require('node-github-webhook') | ||
var handler = createHandler([ // 多个钩子 | ||
var handler = createHandler([ // 多个项目 | ||
{ path: '/webhook1', secret: 'secret1' }, | ||
{ path: '/webhook2', secret: 'secret2' } | ||
]) | ||
// var handler = createHandler({ path: '/webhook1', secret: 'secret1' }) // 单个钩子 | ||
// var handler = createHandler({ path: '/webhook1', secret: 'secret1' }) // 单个项目 | ||
@@ -30,0 +30,0 @@ http.createServer(function (req, res) { |
{ | ||
"name": "node-github-webhook", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Github Webhooks handler based on Node.js. Support multiple handlers.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# node-github-webhook | ||
Github Webhooks handler based on Node.js. Support multiple handlers. | ||
## Language | ||
- [中文](https://github.com/excaliburhan/node-github-webhook/blob/master/docs/zh_CN.md) | ||
## Instructions | ||
@@ -5,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10052
63