GithubHelp home page GithubHelp logo

go-github-webhooks's Introduction

Go-GitHub-Webhooks

✨ Webhooks Builder Written in Golang. ✨

license golang

GitHub last commit

Installation

git clone https://github.com/MuelNova/go-github-webhooks.git
cd go-github-webhooks/src
go build

Run as service

mkdir ~/.config/systemd/user -p
cp go-github-webhooks.example ~/.config/systemd/user/go-github-webhooks.service

Edit ~/.config/systemd/user/go-github-webhooks.service to the config you want.

systemctl --user daemon-reload
systemctl --user start go-github-webhooks

Configuration

cp .env.example .env
Item Description Default Value Type
GITHUB_SECRET Webhook secret, see below - Required
PORT Listening port 4567 Optional
EXTRA_COMMAND Command to be executed when receiving PUSH event. - Optional
WORK_DIR EXTRA_COMMAND Work Directory Current Dir Optional

Usage

First, go the the repo you want to listen, click settings

settings

Find Webhooks, then click Add webhook

webhook

webhook_settings

The Payload URL should be your ip or your domain name and your port, we recommend you to use HTTPS instead of HTTP.

The Secret you set should be filled into GITHUB_SECRET as well.

For safety consideration, the Secret is a must in the configuration.

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.