Pull Requests: Assigning - How to assign a Pull Request

Each PR on Github can be assigned to one or more developers.

Assigning the PR helps to keep track of who is responsible for the work in the PR, even if it was merged by someone else on the team.

The CMPSC 156 Slack Bot that reports on the number of PRs assigned uses this field; if you fail to assign your PRs, the bot will report inaccurate data, such as this:

image

To ensure that these numbers are accurate, go into your PRs and assign them. The place to do it is on the PR page on the right hand side, here:

image

  • Click where it says Assign yourself to assign yourself.
  • Click on the Gear icon to assign someone else (e.g. if you are code reviewing or merging, but someone else did the coding).

Here’s what it should look like after you assign someone to the PR:

image

Assign the devs that actually did the work on the PR. If you are the code reviewer or the merger, Github tracks that separately.

If more than one dev worked on the PR (e.g. Pair or Mob programming), you can assign multiple devs.