Github All You should know


Posted by Yuankun Li on 2019-10-15

Who is Assignees?

What do reviewer and assignee mean in pull request? 里的答案:

For a pull request, you can now "request a review explicitly from collaborators, making it easier to specify who you’d like to review your pull request."
Assignees, on the other hand, “clarify who is working on specific issues and pull requests.”

In sum, the difference is whether you’d like to ask someone to work on fixing an issue or contribute to a pull request (assignee), versus asking someone to quality check your work (reviewer).

On GitHub, what’s the difference between reviewer and assignee?里的答案:

After discussing with several OSS maintainers, reviewers is defined as what the word supposed to be: to review (someone’s code) and “assignee” has a looser definiton explained below.

For “reviewer”: someone you want to review the code. Not necessarily the person responsible for that area or responsible for merging the commit. Can be someone who worked on that chunk of code before, as GitHub auto-suggests.

For “assignee”: up to the project’s team/maintainer what it means and there’s no strict definition. It can be the PR opener, or someone responsible for that area (who is going to accept the PR after the review is done or just close it). It’s not up to GitHub to define what it is leaving it open for project maintainers what fits best for their project.

Previous answer:
Ok I’ll go ahead and answer my own question.
For PR of users with write-access: the Assignee would be the same person who opened the PR, and reviewer would replace the old assignee function (reviewing code), being this one someone of assignee choice.
For PR of users without write-access (outside contributors): Someone with write-access would assign herself (or other write-priviledge member), to review the PR (Reviewer). Assignee is blank.
For unfinished PR from outside contributors: the write-access member would take the unfinished work and assign for her. She will be responsible for finishing the task, being the Assignee. Since the main reason of PRs is reviewing changes, she would select some other people to review the changes.

reviewer: 一般很好理解,就是来review你代码的人。可以是原来改过这段代码的人,负责这块代码的人或是负责merge代码的人。
Assignees: 其实,没有严格定义,可以具体看项目组怎么用这个选项。一般分两个场景

  1. Pull request:创建pull request的人(这种在另一个组的时候用过,如果你是创建的人,可以指定自己),或者是负责merge代码的人(我们组是这么用的),或者就是当review/colse PR完后accept PR的人.
  2. Issue:当你收到一个issue(通常不是你建的issue), 你需要指定人来fix这个issue,就可以在Assignees填。

Reference Links:

show git comment