Code Monkey home page Code Monkey logo

github-webhook's Introduction

Github-Webhook

Simple Api to handle GitHub webhooks and redirect them beautiful to Discord

Getting started:

  • clone the repository on your server:
git clone https://github.com/jxstxn1/Github-Webhook.git
  • get used dependencies:
npm i
  • enter your Discord Webhook URL into the hook var in the github class
nano routes/github.js

or

vim routes/github.js

or

vi routes/github.js
  • In your Firewall Settings of the Server open Port 3000 which is required for the API

  • Setting up the Webhook in Github: In your reposotory or organisatiopm go to Settings>Webhooks>Add Webhook Enter into the Payload URL the ip of your server + the port and the route. In the End it should look like: 11.11.111.11:3000/github Use as Content Type: Application/json Secret not supported yet Choose between one of the 3 event options Make sure the Active Checkbox is settet Click on "Add webhook"

Now you're good to go :)

LICENSE

  • MIT LICENSE

github-webhook's People

Watchers

Justin Baumann avatar Pascal Kray avatar

Forkers

krapas170

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.