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

Ensure branch protection rules across all plugin repos #52

Closed
dblock opened this issue Jun 14, 2021 · 7 comments
Closed

Ensure branch protection rules across all plugin repos #52

dblock opened this issue Jun 14, 2021 · 7 comments
Labels
v1.0.0 OpenSearch 1.0 Release

Comments

@dblock
Copy link
Member

dblock commented Jun 14, 2021

At least require 1 CR.

Screen Shot 2021-06-14 at 9 58 18 AM

@hyandell Is there a way to do this for the org? doesn't look like it

@dblock dblock added the v1.0.0 OpenSearch 1.0 Release label Jun 14, 2021
@ylwu-amzn
Copy link

Do we need special permission to add "Branch protection rule" ? From this https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule, should see "Branches" when open settings page. But I can't see it when open AD settings.

@VijayanB
Copy link
Member

@dblock Since none of the plugin owners are not part of admin, can someone from https://github.com/orgs/opensearch-project/teams/admin/members do this ?

@dblock
Copy link
Member Author

dblock commented Jun 24, 2021

@dblock Since none of the plugin owners are not part of admin, can someone from https://github.com/orgs/opensearch-project/teams/admin/members do this ?

Yep, looks like we will have to do that. I'll figure out a script to do this across repos at some point soon.

@CEHENKLE
Copy link
Member

CEHENKLE commented Jul 1, 2021

All repos in opensearch-org now require at least 1 code review except:
logstash-output-opensearch
opensearch-infra
.github
opensearch-devops
opensearch-plugin-template-java

@ylwu-amzn
Copy link

All repos in opensearch-org now require at least 1 code review

Maybe I missed something. What's that code review about? Should plugin owners prepare and send out that code review?

@CEHENKLE
Copy link
Member

CEHENKLE commented Jul 1, 2021

@ylwu-amzn Hey -- so branch protection is a setting per repo (you can learn more here: https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule) I've now set on all the repos minus the ones listed above a rule that requires at least one code review before merge.

So there's nothing for you to do except verify that the rule is working. If you can merge with out a CR, then I made a mistake and will need to go back and check again.

Make sense?

Thanks!
/C

@ylwu-amzn
Copy link

Got it. Thanks. Will confirm if AD can work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.0.0 OpenSearch 1.0 Release
Projects
None yet
Development

No branches or pull requests

5 participants