Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Don't rely on assignee filter for reviews #18676

Merged

Conversation

pchaigno
Copy link
Member

The review-requested:@me filter lists pull requests that expect a review from you or from any team you belong to. To allow everyone to see only pull requests assigned specifically to them, we had to teach MLH to assign individual reviewers to the pull request and then use assignee:@me instead of review-requested:@me.

Now that GitHub has a user-review-requested filter, we don't need to rely on the assignee filter anymore for reviews. To view pull requests assigned specifically to you (and not just to one of the teams you belong to), you can use user-review-request:@me.

There is one small difference in behavior between the two filters. assignee:@me would display pull requests you already reviewed but gave a Request changes or Comment review. Conversely, user-review-requested:@me will only display pull requests you haven't reviewed yet or for which the author re-requested a review from you.

The review-requested:@me filter lists pull requests that expect a review
from you or from any team you belong to. To allow everyone to see only
pull requests assigned specifically to them, we had to teach MLH to
assign individual reviewers to the pull request and then use
assignee:@me instead of review-requested:@me.

Now that GitHub has a user-review-requested filter, we don't need to
rely on the assignee filter anymore for reviews. To view pull requests
assigned specifically to you (and not just to one of the teams you
belong to), you can use user-review-request:@me.

There is one small difference in behavior between the two filters.
assignee:@me would display pull requests you already reviewed but gave a
Request changes or Comment review. Conversely, user-review-requested:@me
will only display pull requests you haven't reviewed yet or for which
the author re-requested a review from you.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools. needs-backport/1.11 labels Jan 31, 2022
@pchaigno pchaigno requested a review from aanm January 31, 2022 14:34
@pchaigno pchaigno requested review from a team as code owners January 31, 2022 14:34
@pchaigno pchaigno requested a review from qmonnet January 31, 2022 14:34
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.11.2 Jan 31, 2022
pchaigno added a commit to cilium/github-actions that referenced this pull request Jan 31, 2022
With the introduction of the GitHub filter user-review-requested, we
don't need to assign individual reviewers to pull requests anymore.

Related: cilium/cilium#18676
Signed-off-by: Paul Chaignon <paul@cilium.io>
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test - 1

@aanm aanm self-requested a review February 3, 2022 02:49
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test - 2

@aanm aanm removed their assignment Feb 3, 2022
@aanm aanm self-requested a review February 3, 2022 02:49
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test - 3

@aanm aanm removed their assignment Feb 3, 2022
@aanm aanm self-requested a review February 3, 2022 02:50
Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final test

@aanm aanm merged commit 800f1ed into cilium:master Feb 3, 2022
@pchaigno pchaigno deleted the docs-dont-rely-on-assignees-for-reviews branch February 3, 2022 08:43
pchaigno added a commit to cilium/github-actions that referenced this pull request Feb 3, 2022
With the introduction of the GitHub filter user-review-requested, we
don't need to assign individual reviewers to pull requests anymore.

Related: cilium/cilium#18676
Signed-off-by: Paul Chaignon <paul@cilium.io>
pchaigno added a commit to cilium/github-actions that referenced this pull request Feb 3, 2022
With the introduction of the GitHub filter user-review-requested, we
don't need to assign individual reviewers to pull requests anymore.

Related: cilium/cilium#18676
Signed-off-by: Paul Chaignon <paul@cilium.io>
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.11.2 Feb 7, 2022
@joamaki joamaki added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Feb 8, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.11 in 1.11.2 Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. release-note/misc This PR makes changes that have no direct user impact. sig/contributing Impacts contribution workflow, guidelines, and tools.
Projects
No open projects
1.11.2
Backport done to v1.11
Development

Successfully merging this pull request may close these issues.

None yet

4 participants