Hey folks! I just enabled some branch protection rules to only allow merges when there’s 2 approvals and relevant checks have passed (CircleCI / Github Actions). I’ve checked the “allow force push” checkbox, as we think it’s fine for folks to force push to these branches to clean up their git history pre-merge. A developer now got this error when trying to force push to their own branch, which was kind of unexpected?
remote: error: GH006: Protected branch update failed for refs/heads/[redacted]. remote: error: 9 of 9 required status checks are expected. At least 2 approving reviews are required by reviewers with write access. error: failed to push some refs to 'firstname.lastname@example.org:[redacted].git'
Is this expected behavior? Can I somehow allow force pushes when not all checks & approvals are there?