Open rspier opened 2 months ago
You can see my noodling with this including passes and fails at https://github.com/rspier/pause/actions?query=enforce-rebase
GitHub's branch protection rules have a "Require branches to be up to date before merging" setting (under "Require status checks to pass before merging") that may help with this.
Thanks Graham. I wonder if that's new. It's definitely a bit buried. And that's definitely cleaner than a custom workflow.
We might actually want both this check and GitHub's enforcement.
Here's what it looks like in action.
Someone inadvertantly clicking Update Branch could create the merge commit we're trying to avoid.
@andk is the only one with admin permission to set it up right now.
FYI @rjbs
Based on https://github.com/cyberark/enforce-rebase