All Questions
12 questions
1
vote
0
answers
52
views
detect events in Gitlab repo
I need something similar to Github Webhooks in Gitlab.
https://docs.github.com/en/webhooks-and-events
I have read gitlab documentation but there user needs to add webhook himself on individual ...
0
votes
1
answer
560
views
Getting 422 error when trying to get github webhook deliveries using API
I am using the Github API to get the list of deliveries and I am using their API which is working fine for everything except then I try and get the list of deliveries.
Using their code:
const {
...
1
vote
1
answer
276
views
Why does my Github secret fail (change on each event)?
I am trying to verify the Github webhook secret, but each time I trigger an event in Github, the value of req.headers['x-hub-signature']) changes, which doesn't make sense.
NodeJs: sha1=...
0
votes
1
answer
64
views
Why does Github webhooks give me circular JSON objects?
With the below code I am trying to get some basic pull request info from my Github repo, when someone submits a pull request for it. But I get this output instead:
$ node poc2.js
sha1=...
0
votes
1
answer
249
views
Refactoring probot event functions into seperate file causes error: TypeError: handler is not a function
I have the vanilla probot event function from the docs that comments on new issues:
const probotApp = app => {
app.on("issues.opened", async context => {
const params = context....
0
votes
0
answers
37
views
Make exec wait for previous exec [duplicate]
I'm trying to run git pull, npm run build, and pm2 reload myApp any time something is pushed to my github repo.
I created a server which is connected to github webhooks, and the server runs the ...
1
vote
2
answers
1k
views
Error: Unauthorized at Request.callback . status: 401
https://developer.github.com/apps/quickstart-guides/using-the-github-api-in-your-app/
I am following the above tutorial on GitHub on setting up GitHub API, however, I encounter this problem.
========...
5
votes
1
answer
3k
views
trying to mock github webhook request, get: "X-Hub-Signature does not match blob signature"
Here is a little proxy server setup to handle github webhooks:
require('dotenv').config();
var http = require('http');
var createHandler = require('github-webhook-handler');
var handler = ...
0
votes
0
answers
479
views
GitHub Webhook parse request object in Node.js
I would like to design and code a simple LaTeX CI environment. I need to parse request object that GitHub Webhook sends through HTTP POST for push and pull request events in Express (Node.js), but I ...
1
vote
1
answer
47
views
Github structuring for release cycles
I'm reasonably new to using Github and I don't think I'm trying to do the simplest thing so I could really do with some help. I think I'm almost there.
Here's what I'm trying to achieve.
I create a ...
1
vote
1
answer
137
views
Deploy Github release to Node server with webhooks
I've setup a webhook for a repository on Github. When I create a new release in Github, my webhook receiver (on a Node server) receives a request. It works like this (using Express):
app.post("/", ...
0
votes
1
answer
149
views
nodejs and gith doesn't work
i am trying to make a autodeploy with github, i execute this js to have a "server" to receive the hook from github, that work amazing, but i need then to execute a script to download the repository, ...