Add protected branches configuration for main branch#642
Add protected branches configuration for main branch#642
Conversation
Signed-off-by: Dave Fisher <dave2wave@comcast.net>
raboof
left a comment
There was a problem hiding this comment.
LGTM but would be good to have an infra confirmation as well
Agree -> required_approving_review_count = 1 likely. |
|
Pulsar has some interesting notes about CI workflows these go with their |
Add required status checks and pull request review settings for the main branch. Signed-off-by: Dave Fisher <dave2wave@comcast.net>
kevinjqliu
left a comment
There was a problem hiding this comment.
not sure if we want to set require_code_owner_reviews, everything else looks good to me
|
We do not have CODEOWNERS here ? Do we ? So I guess |
Signed-off-by: Dave Fisher <dave2wave@comcast.net>
raboof
left a comment
There was a problem hiding this comment.
I'm +1 on the concepts and on trying this out, though we should be ready to revert if it turns out it prevents the asfgit automated commits on this repo.
kevinjqliu
left a comment
There was a problem hiding this comment.
LGTM!
Lets track to see if asfgit can still push to main after this is merged
Ah... It won't be able to - when branches are protected, bots cannot push to - it - that is a major blocker. |
|
The only solution for that (and possibly a good one) would be that the fix creates a PR that we have to merge manually |
|
Looks like it depends on what
Could you run these to see if Another possible solution is to allowlist |
I think that would create too much work tbh
I see this token apparently is indeed admin. perhaps we should consider switching to a non-admin token.
That seems like a much nicer solution |
Indeed - if it will work. I remember a change in GitHub that blanket-disabled bots from being able to bypass the "pull request approval" limitation of protected branches. but maybe this is a way to bypass it. |
|
I'll add this. Let's wait until Monday to merge and test, |
Signed-off-by: Dave Fisher <dave2wave@comcast.net>
This reverts commit 1faf75d.
This fails because this feature is in the new |
filed apache/infrastructure-asfyaml#92 ... but it's not a blocker for this PR since asfgit is currently still an admin token, if I understand correctly, right? |
As @potiuk suggested in #638