githook

command module
v0.0.0-...-d5e99cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

README

ko-fi

⚠️ In development, breaking changes ⚠️

About

GitHook is a Discord -> GitHub middleware designed to improve GitHub notifications for discord. Basically just a modern and nicer version of the discord built-in GitHub webhook support.

If you need help developing with this, join our Discord Server.

image

Deploy

To deploy this project, create the following docker-compose.yml:

services:
  app:
    image: ghcr.io/luna-devv/githook:latest
    container_name: githook
    ports:
      - "8080:8080"
    restart: unless-stopped
    volumes:
      - ./.env:/app/.env

Create a .env file with the following values:

REDIS_USR=""
REDIS_PW=""
REDIS_ADDR="127.0.0.1:6379"
SECRET="replace-me-with-a-random-string"

To deploy the project, run:

docker compose up -d

Develope

Clone this repo and start the server with the following commands:

git clone https://github.com/Luna-devv/githook
go run .

Usage

To create a webhook, you have to follow the following steps:

  1. Go to localhost:8080/create?url=; replace <discord-webhook> with an actual webhook url.
  2. Go to your repostitories webhook settings.
  3. Enter http://localhost:8080/incomming/<hash>; replace <hash> with the hash returned from step 1 and 2.
  4. Set Content Type to application/json, Secret to none, enable SSL Verification* and enable all events.

image

Please don't be stupid, localhost won't work with GitHub

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL