GitHub Integration
Dispatch provides a first-class GitHub integration that automatically creates webhook endpoints for your repositories.
Connecting GitHub
- Navigate to your project's Sources page
- Click Connect GitHub
- Authorize the Dispatch GitHub app
- Select a repository
- Choose which events to receive (see Event Selection below)
Dispatch will:
- Create a webhook endpoint with
provider = "github" - Register a webhook on the selected GitHub repository pointing to your Dispatch endpoint
- Configure the endpoint to receive the selected event types
Event Selection
When connecting a GitHub repository, choose one of three modes:
| Mode | Description |
|---|---|
| Push only | Receive only push events (commits). Lightweight option for CI/CD notifications. |
| All events | Receive every event type GitHub can send for the repository. |
| Custom | Pick specific event types from a grouped list. Organized by category: Code, Pull Requests, Issues, Discussions, Releases, Actions, and more. |
You can change the event selection at any time by disconnecting and reconnecting the repository, or by editing the webhook in GitHub directly.
Supported GitHub Events
GitHub sends events via the X-GitHub-Event header. Dispatch auto-formats the following event types into rich Discord embeds:
| Event | Description |
|---|---|
push | Commits pushed to a branch |
pull_request | PR opened, closed, merged, labeled, etc. |
issues | Issue opened, closed, assigned, labeled, etc. |
issue_comment | Comment on an issue or PR |
release | Release published, created, edited |
create | Branch or tag created |
delete | Branch or tag deleted |
fork | Repository forked |
star | Repository starred |
workflow_run | GitHub Actions workflow completed |
workflow_job | GitHub Actions job status change |
check_run | Check run completed |
check_suite | Check suite completed |
deployment | Deployment created |
deployment_status | Deployment status updated |
ping | Webhook connectivity test |
Signature Verification
GitHub webhooks use the X-Hub-Signature-256 header with HMAC-SHA256. Dispatch automatically verifies this signature using the endpoint's signing secret, which is set as the webhook secret on the GitHub side.
To rotate the secret, click Regenerate Secret in Edit Source: Dispatch updates the GitHub webhook for you, and the old secret keeps working for a while so deliveries keep verifying while the provider switches (see Signing secrets on integration sources).
Auto-Formatted Embeds
When no custom template is assigned, Dispatch auto-detects GitHub payloads (by the presence of repository and sender fields) and generates specialized embeds:
Push Events
- Shows branch, commit count, and commit messages
- Links to the compare view
- Color-coded by branch (green for main/master)
Pull Request Events
- Shows PR title, description, status, and labels
- Includes reviewer information
- Color-coded by action (green for opened, purple for merged, red for closed)
Issue Events
- Shows issue title, body, assignees, and labels
- Color-coded by action
Release Events
- Shows release name, tag, and description
- Links to the release page
Disconnecting
To disconnect a GitHub repository:
- Go to Sources and find the GitHub source
- Click the unplug icon on the source, then click Disconnect to confirm
- Dispatch tries to remove the webhook from GitHub, then deletes the source (a source that still has stored events is archived instead, keeping them). If the webhook can't be removed (for example, because the GitHub connection was revoked), the source is still removed, and you delete the webhook yourself in GitHub under the repository's Settings → Webhooks
To remove your GitHub account from the project, click Add Source, choose GitHub, click Disconnect next to your account, and confirm. This only removes the connection: your GitHub sources aren't deleted, and their webhooks stay in GitHub. Disconnect the repositories you no longer want first, since Dispatch needs a GitHub connection to remove their webhooks.