A Discord bot that sends notifications for opened pull requests.
git clone https://github.com/xySaad/discord-prcd discord-prtouch .envfill the environement variables in .env file (example)
go mod tidygo run main.goTo connect GitHub with the bot:
-
Go to your repository on GitHub.
-
Navigate to Settings > Webhooks.
-
Click Add webhook.
-
In Payload URL, enter your server’s public URL and webhook path. For example:
http://<your-server-ip>:8080/webhook -
Set Content type to
application/json. -
In Secret, enter the same value you used in your
.envfile underWEBHOOK_SECRET. -
Select the event type:
- Choose Let me select individual events and check Pull requests.
-
Click Add webhook.
Now, whenever a pull request is opened, your bot will post a notification in your configured Discord forum channel.


