github-tools / github-tools/github

Unable to Create Webhook for Jenkins

Abierto
#370 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
3.8k
Forks
809
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
github, javascript
Área
api
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.