Incidents and owners
When CI or a deploy breaks, someone should own it. GitNotify opens an incident for the breakage, gives it an owner, tells that person, and keeps track until a later run passes. Linked people can take an incident or hand it over with buttons on the cards.
When an incident opens
Section titled “When an incident opens”An incident opens when one of these runs fails and no incident is already open for its branch or environment:
- a CI run started by a push (see Which workflows are shown)
- a deploy run
A run counts as failed when it ends as a failure, times out or fails to start. A cancelled run does not open or resolve anything.
Incidents are tracked separately:
- for CI, per branch
- for deploys, per environment: the environment named in the run's title, else the one mapped from its branch, else its branch
So a broken deploy to staging and a broken deploy to production are two incidents, and so are broken CI on main and broken CI on release.
Who owns it
Section titled “Who owns it”The owner is the person who merged the change the run built: GitNotify matches the run's commit to the merge commit of a pull request it saw being merged. For a deploy started by CI finishing, it uses the pull request named in the run's title instead. If there is no merged pull request, the owner is the person who pushed or started the run.
The pull request's author, if they are not the owner, gets an FYI when the incident opens.
The owner is a GitHub login. They are only notified if they have linked themselves in that server, workspace or group. See Notifications and linking.
While it is open
Section titled “While it is open”- More failures on the same branch or environment join the same incident. The cards say "still failing" and count the failed runs. Nobody is pinged again.
- A re-run of a failure that was already counted changes nothing.
- The run cards show the owner, and the merged pull request's card records "🔴 broke …".
- Team digests list every open incident, longest broken first, with its owner, how long it has been broken and how many runs failed. The owner's personal digest lists the incidents they own. See Digests and email.
Take or hand over an incident
Section titled “Take or hand over an incident”While an incident is open, its run cards carry ownership buttons in Discord, Slack and Telegram. In Discord and Slack, incident notifications carry them too.
| Button | Does |
|---|---|
| 🔧 I'll take it | makes you the owner |
| 👉 Hand to login | makes that person the owner. One button for each of up to four other linked people |
| ↩️ Hand back to login | the same, shown for the pull request's author |
Rules:
- Only people who have linked themselves in that server, workspace or group can press the buttons, and only people linked there can be handed an incident.
- The chat must follow the incident's repository.
- A new owner who didn't press the button themselves is notified of the handover.
- The merged pull request's card records who handed the incident to whom.
These buttons change GitNotify's owner only. They never approve, merge, re-run or deploy anything in GitHub.
On a self-hosted server, Discord's ownership buttons are on only when DISCORD_INTERACTIVE=1 is set (Configuration).
When it is resolved
Section titled “When it is resolved”The next successful run of the same kind on the same branch or environment resolves the incident:
- the owner is notified that it is fixed
- the failed runs' cards say "✅ fixed by run #n"
- the merged pull request's card records "✅ fixed …"
- the next team digest, and the owner's personal digest, list it under what was fixed since the last one
If the same branch or environment breaks again later, a new incident opens with a new owner.
Who is notified
Section titled “Who is notified”| Moment | Notified |
|---|---|
| Incident opens | the owner, plus an FYI to the merged pull request's author |
| Incident is handed over | the new owner, unless they pressed the button themselves |
| Incident is resolved | the owner |
| More failures while open | nobody |
Each person is reached the way they chose: a mention in the repository's deploys channel or topic, a direct message, or nothing. Resolved incidents are kept for 30 days, then deleted. See Data and retention.