Bot works by listening for GitHub events. It handles pull request creation, merges, and review requests. It then creates threads in a specified Discord channel.
You can use Docker to compile the project:
docker compose buildThis will create a docker image.
To run the bot properly you need to set up some environment variables. You can set them by using appsettings.json, in docker compose file, .env file or directly in your environment.
You need a Discord API key and GitHub secret to run the bot. Optionally you can also setup pairs of Discord user IDs with GitHub user IDs for mention functionality.
After that you can just run it with:
docker compose upYou can also just use the prebuilt image. Example compose file:
services:
pullwatcher:
image: ghcr.io/sazonek/pullwatcher:latest
environment:
- ASPNETCORE_HTTP_PORTS=8080
- Discord__Token=
- Discord__NotificationChannelId=
- GitHub__WebhookSecret=
- Users__[GithubID]=[DiscordID]
ports:
- "8080:8080"
restart: unless-stopped