https://github.com/shi-gg/githook
Git boat that sends webhook events into your discord server
https://github.com/shi-gg/githook
discord github golang logging webhook
Last synced: about 6 hours ago
JSON representation
Git boat that sends webhook events into your discord server
- Host: GitHub
- URL: https://github.com/shi-gg/githook
- Owner: shi-gg
- License: gpl-3.0
- Created: 2024-04-05T17:34:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-12T11:37:02.000Z (17 days ago)
- Last Synced: 2026-01-25T18:45:29.283Z (4 days ago)
- Topics: discord, github, golang, logging, webhook
- Language: Go
- Homepage: https://wamellow.com
- Size: 73.2 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://lunish.nl/support)


[](https://ko-fi.com/I3I6AFVAP)
**⚠️ 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](https://discord.com/invite/yYd6YKHQZH)**.

## Deploy
To deploy this project, create the following `docker-compose.yml`:
```yml
services:
githook:
container_name: githook
image: ghcr.io/shi-gg/githook:latest
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: unless-stopped
environment:
REDIS_USR: ""
REDIS_PW: ""
REDIS_ADDR: "127.0.0.1:6379"
SECRET: "replace-me-with-a-random-string"
```
To deploy the project, run:
```sh
docker compose up -d
```
## Develop
Clone this repo and start the server with the following commands:
```bash
git clone https://github.com/shi-gg/githook
go run .
```
## Usage
To create a webhook, you have to follow the following steps:
1. Go to [localhost:8080/create?url=](http://localhost:8080/create?url=); replace `` with an actual webhook url.
2. Go to your repostitories webhook settings.
3. Enter `http://localhost:8080/incomming/`; replace `` 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.

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