github-tools / github-tools/github
Unable to Create Webhook for Jenkins
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 809
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.