Sub topic 4
Assigning Owners and Grouping by Milestone
This chapter assumes you can create an issue, add labels, and open a pull request. You will learn how to say who is responsible for an issue and which goal it belongs to.
Assignees
An assignee is a person responsible for moving an issue forward. An issue can have up to 10 assignees. Use one when you can. With several assignees, it is easy for each person to assume someone else is handling it.
To assign someone, open the issue and use the Assignees section in the sidebar. You can also type @me in the search box to assign yourself. Assigning someone does not close or lock the issue. It tells the team who to ask.
Who can be assigned depends on repository access:
- People with write access or higher can always be assigned.
- On public repositories, people who have commented on the issue or pull request can also be assigned.
- Other people cannot be assigned. Mention them with
@usernameinstead (see the next chapter).
Common assignee mistakes
- Assigning someone without asking. They get a notification, but they may not have capacity. Agree on ownership first.
- Leaving finished or abandoned work assigned. Unassign yourself when you stop working on an issue, so others can pick it up.
- Treating "assigned" as "started." Add a comment or a label such as
in progressif your team needs that signal.
Milestones
A milestone groups issues and pull requests under one goal, such as a release or a sprint. Each milestone has a title, an optional description, and an optional due date. GitHub shows a progress bar based on how many of its items are closed.
To create one, open the Issues tab, choose Milestones, then New milestone. Add an issue to a milestone from the Milestone section in the issue sidebar. An issue belongs to at most one milestone.
| Feature | Assignee | Label | Milestone |
|---|---|---|---|
| Answers | Who owns it? | What kind is it? | Which goal or date? |
| Per issue | Up to 10 | Many | One |
| Has a due date | No | No | Optional |
| Shows progress | No | No | Yes |
Milestone names should describe a goal, such as v2.1 or Launch beta. Avoid names like Misc, which end up as dumping grounds that never close.
Using both in searches
Assignees and milestones are search qualifiers. These two queries use them:
is:issue is:open assignee:@me milestone:"v2.1"
is:issue is:open no:assignee milestone:"v2.1"The first shows your open work for a release. The second shows unowned work in that release, which is a useful list to review before a deadline. Use no:milestone to find issues that still have no goal.
From the terminal
The GitHub CLI can set both fields. The milestone must already exist.
gh issue edit 42 --add-assignee @me --milestone "v2.1"
gh issue edit 42 --remove-assignee @me
gh issue list --assignee @me --milestone "v2.1"How the pieces fit
Exercise
Your team is preparing release v2.1. Write a search query that lists open issues in that milestone that nobody owns, and name one action to take with the results.
Show answer
is:issue is:open no:assignee milestone:"v2.1". For each result, either assign an owner or move the issue to a later milestone if it will not ship in v2.1.