# 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.

- URL: https://www.automongo.com/automations/github-discord-notifications/
- Summary: Mirror your GitHub notifications feed into a Discord channel via webhook.
- Tools: n8n
- Difficulty: Beginner
- Category: Development
- Tags: github, discord, notifications, webhook
- Published: 2025-10-09
- External resource: https://n8n.io/workflows/471-send-github-notifications-to-discord-webhook/?ref=ez5zfu33yh5f&utm_source=affiliate

## 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

- **Mobile Alerts for Everything**: Discord mobile pings on every notification, not only @mentions like the GitHub app.
- **Works on Org Repos**: Uses the notifications API, so org repository events arrive the same way personal repo events do.
- **One-Channel Feed**: Centralizes PR reviews, issue updates, and release activity into a single Discord channel.
- **Zero Code**: The workflow is HTTP Request → Discord with no transformation nodes.

### Use Cases

- Solo developers who live in Discord and want all GitHub activity in one place.
- Open-source maintainers who need mobile pings on PR review requests from org repos.
- Small engineering teams funneling repo activity into a shared Discord server.
- On-call engineers who want release and deployment notifications in a mobile-friendly channel.
