The GitHub App
GitNotify learns about your repositories through a GitHub App. On the hosted GitNotify it is gitnotify-bot (https://github.com/apps/gitnotify-bot). A self-hosted server uses a GitHub App you create yourself (Create the GitHub App).
You install the app on an organisation or a personal account, for all of its repositories or only the ones you select. GitNotify can only follow repositories the app is installed on.
What the app can read
Section titled “What the app can read”The app asks for two repository permissions, both read-only:
| Permission | Access | Why |
|---|---|---|
| Pull requests | Read-only | pull request cards, reviews and review notifications |
| Actions | Read-only | CI and deploy run cards, jobs and incidents |
GitHub adds read access to repository metadata automatically. Every other permission stays at No access.
GitNotify only receives the app's webhooks. It holds no private key for the app and never calls GitHub as the app, so it cannot change anything in your repositories. Nothing in Discord, Slack or Telegram approves, merges, re-runs or deploys anything in GitHub.
The events it receives
Section titled “The events it receives”The app subscribes to four repository events:
| Event | Used for |
|---|---|
| Pull request | opening, drafts, review requests, pushed commits, title changes, closing, reopening and merging |
| Pull request review | approvals, changes requested, comments and dismissed reviews |
| Workflow run | CI and deploy runs, and incidents |
| Workflow job | each job's status and duration, and the step that failed |
GitHub also sends the app lifecycle events on the same webhook, without a subscription:
| Event | What GitNotify does |
|---|---|
| App installed, or new permissions accepted | records the installation |
| App suspended | pauses the routes of its repositories. Cards stop until it is unsuspended |
| App unsuspended | resumes those routes |
| App uninstalled | removes the routes of its repositories |
| Repositories removed from the installation | removes the routes of those repositories |
| A person revokes the app in their GitHub settings | removes that person's links in every server, workspace and group |
Every webhook is checked against the app's webhook secret (an HMAC-SHA256 signature over the raw body) before GitNotify reads it. An event for a repository that no chat follows is acknowledged and dropped. GitNotify stores only what the cards show, never pull request bodies, diffs or logs. See Data and retention.
How a repository is proven
Section titled “How a repository is proven”Installing the app is not enough to bring a repository into a chat. Someone who administers both the chat and the repository has to connect it:
- An admin of the chat runs the connect command:
/github connectin Discord (Manage Server),/gitnotify connectin Slack (a workspace admin or owner, or the installer), or/connectin Telegram (a group creator or administrator). - GitNotify gives them a one-time sign-in link. It works once, lasts 10 minutes and is bound to that chat and that person. In Discord and Slack it is also bound to the browser that opened it. In Telegram it arrives by private message.
- They sign in to GitHub. GitNotify reads who they are and the installations of the app they can see.
- GitNotify offers only the repositories where the app is installed and the person has admin permission on the repository. They pick the ones to connect.
- GitNotify revokes the GitHub token straight away.
The repository is now connected to that server, workspace or group, and the setup command builds where its cards go. The installation id GitHub adds to setup links is never trusted on its own.
If a repository is missing from the list, either the app is not installed on it or you are not an admin of it. The picker has a link to install GitNotify on another account or repository, and brings you back afterwards.
Linking a person
Section titled “Linking a person”Linking is separate from connecting. When someone runs /link (or /gitnotify link in Slack), GitNotify reads only their GitHub user id and login from /user, then revokes the token. That tells GitNotify which reviews and incidents are theirs. See Notifications and linking.
Removing access
Section titled “Removing access”- To stop GitNotify following a repository, remove it from the app's installation on GitHub, or uninstall the app. Its routes are removed.
- To pause everything for an account, suspend the installation. Routes resume when you unsuspend it.
- To remove yourself everywhere, revoke GitNotify under Settings → Applications → Authorized GitHub Apps on GitHub. Your links are removed in every chat.
Data and retention lists the other ways to delete data.