Skip to content

xySaad/discord-pr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord PR - Pull Request Notifier Bot

A Discord bot that sends notifications for opened pull requests.

Usage

git clone https://github.com/xySaad/discord-pr
cd discord-pr
touch .env

fill the environement variables in .env file (example)

go mod tidy
go run main.go

Webhook Setup

To connect GitHub with the bot:

  1. Go to your repository on GitHub.

  2. Navigate to Settings > Webhooks.

  3. Click Add webhook.

  4. In Payload URL, enter your server’s public URL and webhook path. For example:

    http://<your-server-ip>:8080/webhook
    
  5. Set Content type to application/json.

  6. In Secret, enter the same value you used in your .env file under WEBHOOK_SECRET.

  7. Select the event type:

    • Choose Let me select individual events and check Pull requests.
  8. Click Add webhook.

Now, whenever a pull request is opened, your bot will post a notification in your configured Discord forum channel.

Features

- Opens a forum thread for every pull request

- Allows filtering using tags: open / closed or branch name

- Provides a simple overview message about the pull request

- Sends a message on PR comments

Bot Screenshot Bot Screenshot Bot Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages