-
Notifications
You must be signed in to change notification settings - Fork 71
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
Enable developers to merge code to *-dev branch without branch protection #26
Comments
Is this for the OpenSearch repo? I'll move this issue to that repo then. There's no standard branch protection for anything other than main org-wide. |
@dblock This was encountered for the Alerting OpenSearch repo. We don't have insight into the branch protection rules in the For the time being, we'd at least like the |
Makes sense. Right now org-wide we don't have any rules related to any other branches than |
seconded dB's comment. Let's get concrete on the proposal, and push it across the repos when we move. |
@qreshi Branch protection just says that you need to be doing PRs into the branch and not push directly to avoid accidentally overwriting someone else's code, and disallow force pushes, and that PRs need to be reviewed by at least 1 person. It does not prevent you from subsequent commits! I think it's good that ya'll can't push into alerting/dev, but have to make a PR (small price to pay), then if you don't like that 1 other person needs to code review for dev branches, just agree that the "code review" is an ack by another engineer. It doesn't happen often. I am happy to go edit branch protections for alerting for whatever though, such as changing |
Alternative - Fork repositories for development scenariosCan we use fork branches for these kinds of development scenarios? Multiple contributors can work within a fork on a feature, still using PRs, and then when the work is ready it can follow the standard pull request pattern to rejoin its the target branch in the opensearch-project repository. Forks can use GHA just like the opensearch-project based repository, or additional requirements if need be. This allows customization to cater to the work under development. Some things that will not work are workflows from the Jenkins system, those are locked into opensearch-project based repository, so This effectively side-steps the branch protection policy - does that work? |
We have branch protection for merging code to a dev branch. Can we remove branch protection on -dev branch where an "" can represent the name of a feature - e.g bucket-level-alerting-dev
Apply branch protection rules only to
main
opensearch-[1-9].[0-9].[0-9]*
The text was updated successfully, but these errors were encountered: