Skip to content
Source
Sign inSign up

Assign people

Issues and pull requests / Issues

Assign people to issues and pull requests

An issue or a pull request needs an owner, and often a different job for each person: Ana checks the tests, Ben reads the docs. Assign each person, and give each one an optional note that says what you ask them to do.

3 min read

You need the triage role or more on the repository. You can assign each person who can read the issue or the pull request. A private issue can have only people who can read it.

1. Open the Assignees list

  1. Open the issue or the pull request.
  2. In the sidebar, click Assignees.

The list of the people of the repository opens: its owner or the members of its organization, and its collaborators.

2. Add each person, with a note

  1. Click a person in the list. To find someone who is not in the list, type their username. The person is added.
  2. If you have a request for the person, type it in the note field under their name. For example: "please check the tests".
  3. Do this again for each other person.

3. Apply

Click Apply. The sidebar shows each assigned person, with their note under the name.

  • To change a note, edit the note field under the name of the person, then click Apply.
  • To remove a person, click the X next to the name, then click Apply.

Done

  • The timeline shows who assigned whom, with the note.
  • An open issue or pull request shows on the home page of each assigned person.
  • If the Assign agent picked you, its note under your name says why it picked you. It picks from the experts and the code owners of the repository.

Note

On a repository that syncs with GitHub, the people go to GitHub too. The notes stay here, because GitHub has no notes. A person who has no GitHub account here cannot be assigned on a GitHub item.

To see the issues and pull requests of one person, see Find the work of one person.

Later: src, REST and MCP

List the people that the Assignees list shows (triage role or more):

src repo assignees
src repo assignees --json login,name
  • The list has up to 50 people: the owner or the members of the organization, and the collaborators.
  • A private member of the organization shows only when you are a member of that organization.
  • REST: GET /api/v1/repos/{owner}/{repo}/assignees. Each person is { username, displayName }.
  • MCP: list_assignees.
  • You can still assign a person who is not in the list, by username.

Assign one person with a note:

src issue assign 42 ana --note "please check the tests"

The command works for a pull request too, because issues and pull requests share their numbers. If you assign the same person again with a new note, the note changes.

Assign or remove people without a note, as in gh. @me is you:

src issue edit 42 --add-assignee ana,@me --remove-assignee ben
src pr edit 7 --add-assignee ana

src issue view and src pr view show the assignees and their notes.

Over REST, add people. Each entry is a username, or a username with a note:

src api -X POST repos/<owner>/<repo>/issues/42/assignees \
  --input - <<'EOF'
{ "assignees": [{ "username": "ana", "note": "please check the tests" }, "ben"] }
EOF
  • PUT .../issues/{n}/assignees makes the list exact.
  • DELETE .../issues/{n}/assignees/{username} removes one person.
  • The MCP tool is set_item_assignees, with mode set to set, add or remove.