Skip to content

Discord

GitNotify in Discord builds private channels for your repositories, posts live cards into them through app-owned webhooks, and handles a small set of slash commands. It has no gateway connection and never reads messages.

You need Manage Server in the Discord server, and admin permission on the GitHub repositories you want to follow. Install the GitHub App on the account that owns them first, or from the repository picker in step 2.

  1. Add GitNotify with the invite link:

    https://discord.com/oauth2/authorize?client_id=1552402417423745025&scope=bot%20applications.commands&permissions=805391376&integration_type=0

    Discord tells GitNotify the server was added.

  2. Connect repositories. Run /github connect. GitNotify replies privately with a one-time link. It works once, lasts 10 minutes and is bound to the server, to you and to your browser. Sign in to GitHub. Only repositories you administer and where the GitHub App is installed are offered. Pick the ones to connect to this server.

  3. Build the channels. Run /setup. A private wizard asks for:

    • the connected repositories to set up
    • a layout: a category per repository, each with #activity and #deploys, or one shared GitNotify category with #<repo>-activity and #<repo>-deploys
    • the roles that may read the channels. None means private: only GitNotify can see them until you add roles

    The bot builds the category, the channels and an app-owned webhook in each. @everyone is denied, the bot keeps its own access, and the chosen roles can read but not post. Routes go live and cards start flowing. A server can follow at most 50 repositories.

  4. Have your team link themselves. Each member runs /link, then /notify to choose mention, DM or off. See Notifications and linking.

  5. Optionally, turn on digests with /digest. See Digests and email.

New commands can need a Discord reload (Ctrl+R) before they appear.

Command Who Does
/github connect Manage Server a one-time link (10 minutes, single use, bound to the server, the person and the browser) to a GitHub sign-in. Only repositories the person administers are offered. The chosen ones are connected to this server
/setup Manage Server a private wizard: connected repositories, a layout (a category per repository, or one shared category) and the roles that may read (none means private). The bot builds the category, channels and app-owned webhooks, and routes go live. At most 50 repositories per server
/gitnotify access Manage Server changes which roles can read the channels /setup built, per repository. Roles left out lose access. Never @everyone
/gitnotify repair Manage Server puts back what /setup built. See Repair
/gitnotify status Manage Server what this server follows, what needs repair or is paused, connected repositories not set up yet, who is linked, and the bot's permissions
/gitnotify people Manage Server who is linked here and how each is notified
/gitnotify help anyone what GitNotify does and how to use it
/link anyone link your GitHub account in this server. The GitHub sign-in reads only /user, and the token is revoked
/notify how: anyone mention, dm or off, for this server
/digest channel timezone: times: [channel:] Manage Server the team digest, at local times such as 09:00, 21:00. Refuses a channel everyone can see. With no channel, GitNotify makes a private #gitnotify-digest
/digest me timezone: times: [via:] anyone linked your digest by DM or email. Email sends a test at once
/digest email [url:] Manage Server for servers without built-in email: a one-time secret for the server's email relay, then its address and a signed test
/digest off which: anyone (team and email need Manage Server) stop your digest, the team digest or this server's email relay
/digest preview anyone linked your digest right now, privately
/forget-me anyone asks first, then removes your link, notification records and personal digest in this server

Command replies are private to the person who ran them. /setup, /gitnotify access, /github connect and /link are rate-limited per server and person, five a minute.

Channels and webhooks can be deleted or changed in Discord. When GitNotify can no longer post to a channel, it pauses that route instead of retrying, and /gitnotify status shows it as needing repair. /gitnotify repair:

  • recreates a missing category, channel or webhook
  • moves channels back into their category. Deleting a category in Discord leaves its channels behind
  • puts back the recorded access if a channel became public. Repair never grants broader access than you chose
  • gives older webhooks GitNotify's picture
  • builds a new channel if GitNotify can no longer see the old one, and asks you to delete the old one. Removing the bot from a channel drops its access

GitNotify uses Discord's REST API and one signed endpoint for commands and buttons. It never connects to the gateway, asks for no intents and never receives message content.

The invite asks for permissions 805391376, and never Administrator:

  • Manage Channels
  • Manage Roles
  • Manage Webhooks
  • View Channel
  • Send Messages
  • Embed Links
  • Read Message History

Manage Channels, Manage Roles and Manage Webhooks let the bot build the private categories, channels and webhooks during setup and repair, and set each channel's access: @everyone denied, the chosen roles read-only. GitNotify has no gateway connection, so none of these permissions lets it receive messages.

Other guarantees:

  • Every interaction is checked against Discord's Ed25519 signature before anything is read, and one older than 5 minutes is refused.
  • Every message GitNotify sends has an explicit, empty mention list, plus the one linked person it means to mention. It never pings @everyone, @here or a role.
  • Webhook URLs are encrypted at rest.
  • New categories and channels are private by default, and repair never widens access.

See What GitNotify reads and Security model.

Discord doesn't tell an app when it is removed from a server, so GitNotify checks once a day. When it finds it has been removed, it marks the server removed and pauses its routes. If you add GitNotify back within 30 days, the server is reactivated and a repair runs by itself, because removal deletes the bot's webhooks. After 30 days the server's data is deleted. The messages already posted stay in your channels. See Data and retention.