github-tools / github-tools/github
Unable to Create Webhook for Jenkins
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
var GitHub = require('github-api');
var Promise = require("es6-promise").Promise;
const gh = new GitHub({
username: 'foo',
password: 'bar'
});
var fork = gh.getRepo('user', 'repo');
console.log(fork);
var hookDef = {
"name" : "web",
"config" : {
"url" : "http://jenkinshost:8080",
"content_type": "json"
},
"events" : ["push"],
"active" : true
}
fork.createHook(hookDef)
.then(function(data) {
console.log("A jenkins hook has been created which will trigger a build on push and pull request events...");
});
```
Is there something I am missing
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by reproducing the JavaScript example and inspect the result or error from fork.createHook(hookDef). Check whether the supplied webhook definition is accepted, then confirm that a Jenkins webhook can be created successfully for the repository.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, javascript
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100