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

config(tidb): enable require code owner reviews #436

Merged

Conversation

Mini256
Copy link
Member

@Mini256 Mini256 commented Sep 22, 2021

Proposal

https://internals.tidb.io/t/topic/374/15?u=mini256

Related PR

pingcap/tidb#28249

How it works

Notice: When this PR is merged, the robot will automatically synchronize the configuration to the branch protection configuration of the GitHub repository.

image

We enable the CODEOWNERS to implement our config review mechanism by turning on the require_code_owner_reviews option.

But GitHub will require us to enable the required_approving_review_count option at the same time, and the minimum value of this option is 1.

It will require our PR to pass through at least one reviewer with write permission before it can be merged. However, our team reviewer only has read permission in the repository settings.

Notice: After enabling this option, if the PR does not get the approval of at least one committer or maintainer (whose role with write permission) before the committer comments /merge, the committer needs to perform an additional approve operation, or GitHub will prompt this.

image

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 22, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • tisonkun

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 22, 2021
@Mini256
Copy link
Member Author

Mini256 commented Sep 22, 2021

/hold

@ti-chi-bot ti-chi-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 22, 2021
@Mini256
Copy link
Member Author

Mini256 commented Sep 23, 2021

\cc tisonkun

Please also take a look at this PR, it will turn on the required_approving_review_count option at the same time if this is acceptable.

cc: @qw4990 @bb7133 @XuHuaiyu @cfzjywxk @morgo

Referenced document: https://github.com/kubernetes/test-infra/tree/master/prow/cmd/branchprotector

@Mini256 Mini256 requested a review from tisonkun September 23, 2021 03:25
Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

LGTM.

@bb7133 @morgo @XuHuaiyu @qw4990 @cfzjywxk please take a look and approve explicitly if it looks good to you.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 26, 2021
@morgo
Copy link

morgo commented Sep 26, 2021

LGTM

1 similar comment
@bb7133
Copy link

bb7133 commented Sep 26, 2021

LGTM

@ti-chi-bot
Copy link
Member

@bb7133: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@bb7133
Copy link

bb7133 commented Sep 26, 2021

/merge

@ti-chi-bot
Copy link
Member

@bb7133: /merge is only allowed for the committers, you can assign this pull request to the committer in list by filling /assign @committer in the comment to help merge this pull request.

In response to this:

/merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@Mini256
Copy link
Member Author

Mini256 commented Sep 26, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 3db71cd

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 26, 2021
@Mini256
Copy link
Member Author

Mini256 commented Sep 26, 2021

/unhold

@ti-chi-bot ti-chi-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 26, 2021
@ti-chi-bot ti-chi-bot merged commit a8c3f96 into ti-community-infra:main Sep 26, 2021
@ti-chi-bot
Copy link
Member

@Mini256: Updated the config configmap in namespace prow at cluster default using the following files:

  • key config.yaml using file prow/config/config.yaml

In response to this:

Proposal

https://internals.tidb.io/t/topic/374/15?u=mini256

Related PR

pingcap/tidb#28249

How it works

Notice: When this PR is merged, the robot will automatically synchronize the configuration to the branch protection configuration of the GitHub repository.

image

We enable the CODEOWNERS to implement our config review mechanism by turning on the require_code_owner_reviews option.

But GitHub will require us to enable the required_approving_review_count option at the same time, and the minimum value of this option is 1.

It will require our PR to pass through at least one reviewer with write permission before it can be merged. However, our team reviewer only has read permission in the repository settings.

Notice: After enabling this option, if the PR does not get the approval of at least one committer or maintainer (whose role with write permission) before the committer comments /merge, the committer needs to perform an additional approve operation, or GitHub will prompt this.

image

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants