excaliburhan / node-gitlab-webhook Goto Github PK
View Code? Open in Web Editor NEWGitlab Webhooks handler based on Node.js. Support multiple handlers.
License: MIT License
Gitlab Webhooks handler based on Node.js. Support multiple handlers.
License: MIT License
In your Typescript definition file your are exposing the available hooks right here:
node-gitlab-webhook/index.d.ts
Lines 381 to 390 in 84f5777
Unfortunately though you are missing out on one:
on(type: 'issue', callback: (event: EventData<IssueEvent>) => void): void;
Currently I am not able to create a pull request, so I'd appreciate it if you can do this yourself.
I'm a member of the Node.js Foundation Security Working Group and we received a report of a vulnerability in this module.
We tried inviting the author by e-mail but received no response so I'm opening this issue and inviting anyone with commit and npm publish rights to collaborate with us on a fix.
In my handler for incoming issues I noticed that event.payload.project.id
is typed as id?: number | undefined
(line 354):
node-gitlab-webhook/index.d.ts
Lines 339 to 355 in 5e2db48
However event.payload.object_attributes.project_id
(line 63) is not optional:
node-gitlab-webhook/index.d.ts
Lines 57 to 74 in 5e2db48
Is that a mistake in your typings or is it actually possible that Gitlab will return undefined for the first id
while project_id
is not?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.