tolfix / simple-webhook-github Goto Github PK
View Code? Open in Web Editor NEWA simple github webhook powered in node.js
Home Page: https://www.npmjs.com/package/simple-webhook-github
A simple github webhook powered in node.js
Home Page: https://www.npmjs.com/package/simple-webhook-github
Follow issue #1
Need help fixing up organization body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#organization
Follow issue #1
Need help fixing up package body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#package
Follow issue #1
Need help fixing up pull_request body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
Follow issue #1
Need help fixing up release body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
Follow issue #1
Need help fixing up epository_dispatch body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_dispatch
Follow issue #1
Need help fixing up repository_vulnerability_alert body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_vulnerability_alert
If K
is "push", then we should only give the end user the push
events that are receiving, and if we receiving another event ignore it.
Follow issue #1
Need helping fixing up meta for body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#meta
Follow issue #1
Need help fixing up public body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#public
Follow issue #1
Need help fixing up watch body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#watch
Follow issue #1
Need help fixing up pull_request_review_comment body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review_comment
Follow issue #1
Need help fixing up pull_request_review body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request_review
Follow issue #1
Need help fixing up project_card body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project_card
Follow issue #1
Need help fixing up team body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#team
Follow issue #1
Need help fixing up project body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project
Follow issue #1
Need help fixing up status body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#status
Follow issue #1
Need help fixing up workflow_run body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_run
Follow issue #1
Need help fixing up star body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#star
Follow issue #1
Need help fixing up team_add body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#team_add
Follow issue #1
Need help fixing up ping body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#ping
Follow issue #1
Need help fixing up repository body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository
Follow issue #1
Need help fixing up secret_scanning_alert body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#secret_scanning_alert
Follow issue #1
Need help fixing up org_block body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#org_block
In GithubEvents
interface I need to make every event that github has to offer, and at the same time make a body for it to.
refrence here
https://github.com/Tolfix/Webhook/blob/5d323d7bd695895aceb989cfb8908d1adb8ff42c/src/Interfaces/Body.ts#L54
Create a new interface
for the body, which needs to be named: {Event}Body
, for an exemple ProjectCardBody
, remember to uppcase!
Once the interface is done add it into the GithubEvents
as the following:
export interface GithubEvents {
...
project_card: ProjectCardBody;
...
}
And there is nothing more to it!
If the webhook got a secret we need to decrypt it /shrug
Once compiled you need to add default
to call the class, which doesn't make it that great. Would be better to find a solution on this so you can just requrie it without including .default
at the end.
Follow issue #1
Need help fixing up workflow_dispatch body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
Follow issue #1
Need help fixing up sponsorship body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#sponsorship
Follow issue #1
Need help fixing up project_column body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#project_column
Follow issue #1
Need help fixing up page_build body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#page_build
...
const webhook = new SimpleWebhookGithub();
app.use("/webhook", webhook);
...
Follow #1
Need help fixing up milestone body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#milestone
Follow issue #1
Need help fixing up repository_import body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository_import
Follow issue #1
Need help fixing up security_advisory body
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#security_advisory
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.