-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Set release branch protection with approve reviews 2 #70
Conversation
This is your friendly self-service bot. Thank you for raising a pull request to update the configuration of your GitHub organization. The following conditions need to fulfilled for auto-merging to be available:
Otterdog commands and optionsYou can trigger otterdog actions by commenting on this PR:
|
This is your friendly self-service bot. The author (andrew-m-leonard) of this PR is associated with this organization in the role of Additionally, andrew-m-leonard is a member of the following teams: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/otterdog validate |
This comment has been minimized.
This comment has been minimized.
/otterdog validate info |
This comment has been minimized.
This comment has been minimized.
Likely OK, but |
You can be more specific about the pattern, this one would match currently 11 branches in the temurin-build repo: |
but I would suggest to look into Rulesets. They are the same as branch protection rules but offer things also wrt matching branches / tags. |
@tellison I could make it "v[0-9][0-9][0-9][0-9][.][0-9][0-9][.][0-9][0-9]" |
i'd actually like to be less specific, as really ALL branches in these repos should be protected |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking pending PMC discussion tomorrow (but as per the retrospective I'm personally happy with this ;-) )
I am also +1 to this. We had to ensure branch protection was turned on for aqa-tests in the past and I was surprised it was not the default template for EF projects. |
@sxa @smlambert Can I get your reviews please now this has been agreed? thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrew-m-leonard Could you pre-squash these commits so we don't merge this with the commit message saying 1 please? (Same for the PR description for housekeeping purposes)?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Andrew Leonard <[email protected]>
36cd1db
to
aa4b2dc
Compare
This is your friendly self-service bot. Diff for aa4b2dcOrganization adoptium[id=adoptium]
there have been 4 validation infos, enable verbose output with '-v' to to display them.
+ add branch_protection_rule[pattern="v20*", repository="ci-jenkins-pipelines"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
+ add branch_protection_rule[pattern="v20*", repository="jenkins-helper"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
+ add branch_protection_rule[pattern="v20*", repository="temurin-build"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
Plan: 3 to add, 0 to change, 0 to delete. |
@sxa thanks done |
This is your friendly self-service bot. The current configuration is in-sync with the live settings. 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @andrew-m-leonard !
This is your friendly self-service bot.
In order to automatically merge and apply the changes, add a comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@netomi This is now ready for merging please |
|
/otterdog merge |
This is your friendly self-service bot. |
/otterdog merge |
This is your friendly self-service bot. The following changes have been successfully applied: Organization adoptium[id=adoptium]
there have been 4 validation infos, enable verbose output with '-v' to to display them.
+ add branch_protection_rule[pattern="v20*", repository="ci-jenkins-pipelines"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
+ add branch_protection_rule[pattern="v20*", repository="jenkins-helper"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
+ add branch_protection_rule[pattern="v20*", repository="temurin-build"] {
+ allows_deletions = false
+ allows_force_pushes = false
+ blocks_creations = false
+ bypass_force_push_allowances = []
+ bypass_pull_request_allowances = []
+ dismisses_stale_reviews = false
+ is_admin_enforced = false
+ lock_allows_fetch_and_merge = false
+ lock_branch = false
+ pattern = "v20*"
+ require_last_push_approval = false
+ required_approving_review_count = 2
+ required_status_checks = [
+ "eclipse-eca-validation:eclipsefdn/eca"
+ ],
+ requires_code_owner_reviews = false
+ requires_commit_signatures = false
+ requires_conversation_resolution = false
+ requires_deployments = false
+ requires_linear_history = false
+ requires_pull_request = true
+ requires_status_checks = true
+ requires_strict_status_checks = false
+ restricts_pushes = false
+ restricts_review_dismissals = false
+ }
Applying changes:
Done.
Executed plan: 3 added, 0 changed, 0 deleted. |
Fixes adoptium/temurin-build#4045
Ensure build repository release branches "v*" have branch protection with 1 review required