Skip to content

sazonek/PullWatcher

Repository files navigation

About

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.

Compiling

You can use Docker to compile the project:

docker compose build

This will create a docker image.

Running

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 up

You 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

About

Discord bot for GitHub webhooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published