跳到主要内容

GitHub pull request open event triggers a Discord message

GitHub is the largest web-based platform that provides developers with a place to host and manage their software projects.

You can receive notifications when specific events occur in a repository by adding a GitHub Source on Vanus Connect.

This guide will help you get a Discord notification whenever a pull request is opened in your repository.

Getting Started

Step 1: Configure the Source - Authorize GitHub and select a GitHub repo

  • Log in to Vanus Connect

  • Choose the GitHub opened pull-request event triggers a Discord message template. Click on Try it now①.

github_discord_pr_1.webp

  • Give the Conncection a Name②, scroll to Authorize Github Account and click the Authorize③ button.

template_github_discord_5.webp

  • Select the repo④ you want to configure, and click Next⑤.

template_github_discord.webp

Step 2: Create a Discord Server

  1. Go to the Discord application.

  2. Create a new server by clicking the +① icon.

discord-sink-1

  1. Choose a template or create your own, by selecting Create My Own②.

discord-sink-2

  1. Click on Skip this question③ to move to the next step of your configuration.

discord-sink-3

  1. Input a Server Name④ and click on Create⑤.

discord-sink-4

Step 3: Get a webhook URL

  1. Bring out the drop down settings menu by clicking ①.

discord-sink-5

  1. Select Server Settings②.

discord-sink-6

  1. Click on Integrations③ in the sidebar menu under APPS.

discord-sink-7

  1. Click Create Webhook④.

discord-sink-8

  1. Click on Spidey Bot⑤, the webhook you just created.

discord-sink-9

  1. Tap the Copy Webhook URL⑥ button.

discord-sink-10


Step 4: Discord Connection Settings

  1. Go back to Vanus Connect.

  2. Paste your webhook URL in the Webhook URL① field, and click Submit② to continue.

images/template_github_discord_3.webp

Result Display

When a pull request is opened in your repository, you will receive a real-time GitHub Notification on Discord.

github_discord_pr_2.webp