Sub topic 14
Controlling Subscriptions and Notifications
This chapter assumes you can create issues, use @mentions, and link pull requests, as covered in earlier chapters. It explains how GitHub decides what to notify you about and how to reduce the noise.
How subscriptions work
A subscription is GitHub's record that you want updates about one issue or pull request. You are subscribed to a thread automatically when you:
- create it,
- are assigned to it,
- comment on it,
- are @mentioned in it,
- are asked to review it.
On an open issue, the sidebar shows a Notifications section with a Subscribe or Unsubscribe button. The Customize option lets you choose which events matter, such as only when the issue is closed or reopened.
Unsubscribing is not permanent in every case. If someone @mentions you again later, GitHub subscribes you again. To stop that for a specific thread, use Unsubscribe and ask people not to mention you, or mute the thread (see below).
Watching a repository
Watching sets your default for a whole repository. The options are:
| Setting | What you receive |
|---|---|
| Participating and @mentions | Threads you take part in, plus direct mentions |
| All Activity | Every new issue, pull request, and comment |
| Ignore | Nothing |
| Custom | Selected event types, such as issues, pull requests, or releases |
For a busy repository, "Participating and @mentions" is the usual choice. "All Activity" suits a maintainer who triages every new report. Custom with only Issues selected is a good middle path for a triager who does not want pull request traffic.
Where notifications arrive
You choose delivery channels in your account's notification settings. Two channels are available for most events:
- Web and mobile inbox at github.com/notifications. You can mark items as done, save them for later, and filter by repository, reason, or type.
- Email, which you can limit to certain events and send to different addresses per organization.
Every notification has a reason, such as assign, mention, author, subscribed, or review_requested. The inbox lets you filter on it, for example with reason:mention. Filtering on reasons is the fastest way to find the items that need you personally.
is:unread reason:mentionReducing noise
Use these tools in order of how aggressively they cut notifications:
- Unsubscribe from a thread you no longer follow.
- Mute a thread. Select Unsubscribe in the inbox, or choose Ignore in the repository watch menu. Muted threads stay quiet even if you are mentioned, though a direct assignment or review request can still reach you.
- Customize a subscription so you only hear about closing events.
- Change watch settings for the whole repository.
The sequence below shows how a comment reaches different people.
Notifying the right people
Notification volume depends on how you write, too. @mention a person only when you need their action. Mentioning a team, such as @octo-org/triagers, notifies every member who is subscribed to team mentions, so use it sparingly. Cross-references to other issues do not notify anyone who is not already subscribed to the target thread.
Common errors
- Receiving email for threads you left. A new @mention re-subscribes you. Mute the thread instead.
- Missing notifications. Check that the repository is not set to Ignore and that your email address is verified.
- Inbox overload. Triage by reason, mark items done in bulk, and watch fewer repositories.
Exercise
You contributed to an issue months ago and still get email about it. You want to stay informed only if the issue is closed or reopened. What do you do?
Show answer
Open the issue, use the Customize option under Notifications in the sidebar, and select only the events for closed and reopened. This keeps you subscribed without receiving every comment.