Closed nikic closed 3 months ago
Indeed, currently in team, a branch protection means that a PR will be required.
Should we try to add a pr-required = false
option so that we don't need to get rid of basic branch protection?
We can, but we'd be slowly starting to converge to the messy system that GitHub currently has :)
Well it feels wrong that in order to allow the release branch pattern, we are asking folks to give up on all protections.
It would be nice to have some better syntax for this than 5 true/false booleans though, like
[[branch-protections]]
pattern = "..."
pr = false
# pr = { required = true, min-approvals = 0 }
but we'd have to change the team data format for that.
Anyway, I'm not opposed to adding pr-required
.
To restore to something that more closely resembles the state before https://github.com/rust-lang/team/pull/1208. Merging new changes from upstream release branches into our fork doesn't really benefit from going through a PR or review, especially for work-in-progress upgrade branches.
I would have preferred to keep the "no force push and branch deletion" part of the branch protection, but it looks like disabling the PR requirement is not supported.