github-tools / github-tools/github

Unable to Create Webhook for Jenkins

Aberta
#370 6 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
3.8k
Forks
809
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

```
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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.