Featured Automation
Development Beginner

Send GitHub Notifications to Discord

Poll the GitHub notifications API on a schedule and forward every new item to a Discord channel through a webhook, so you catch repo activity on mobile.

At a glance

Send GitHub Notifications to Discord is a beginner-level development automation built with n8n. Mirror your GitHub notifications feed into a Discord channel via webhook.

Tools required
n8n
Tags
#github #discord #notifications #webhook
Difficulty
Beginner
Published
· 1 min read

How It Works

GitHub only pushes mobile notifications for direct @mentions, which leaves repo events, review requests, and org activity invisible on your phone. This workflow polls the GitHub notifications API on a schedule and forwards each new item to a Discord webhook, so Discord’s mobile app surfaces the alert. A GitHub trigger node is not used because it fires on events, not notifications, and fails on org-owned repos.

Setup Steps

  1. Create the Discord Webhook: In the target Discord channel, open Integrations, create a webhook, and copy its URL.
  2. Authenticate GitHub: Add GitHub credentials in n8n with a personal access token that includes notifications scope.
  3. Set the Discord URL: Paste the webhook URL into the Discord node, and the GitHub token into the HTTP Request node that calls the notifications API.
  4. Tag Yourself: Replace <@userIdForTagging> in the message body with your Discord user ID so you get pinged on mobile. Find your ID by typing \@username#9999 in any Discord channel.
  5. Activate the Workflow: Save and activate so the schedule node polls the notifications API at your chosen interval.

Code Example

Message body:
<@userIdForTagging> New GitHub notification: {{ $json.subject.title }}
Repo: {{ $json.repository.full_name }}
Reason: {{ $json.reason }}
URL: {{ $json.subject.url }}

Benefits

Use Cases

Related Automations