PRs added to the merge queue are removed with "failed to merge" because required checks never ran.
AdvancedTroubleshootingGitHub, Actions and Pull Request Issues
Answer
Likely causes → The merge queue creates temporary gh-readonly-queue/main/pr-... branches and expects required checks to report on them via the merge_group event. Workflows triggered only by pull_request never run there, so the queue times out.
Diagnose → Check the workflow's on: block and the queue entry's checks; there will be no run for the merge_group event.
Fix →
on:
pull_request:
merge_group:
types: [checks_requested]
Make sure the same job names are produced for both events, since required checks match by name.
Prevent → Add merge_group to every required workflow before enabling the merge queue on a branch.
More on GitHub, Actions and Pull Request Issues
A workflow step that pushes a version bump fails with `remote: Permission to org/repo.git denied to github-actions[bot].` and `The requested URL returned error: 403`.IntermediateA workflow pushes a commit or tag, but the workflow that should run on that push or tag never starts.IntermediateA container job fails on any Git command with `fatal: detected dubious ownership in repository at '/__w/app/app'`.IntermediateYour PR suddenly shows 340 changed files and dozens of commits you did not write.IntermediateThe PR is stuck on `Expected — Waiting for status to be reported` for a required check called `build`.IntermediateThe PR was approved, but merging shows "Review required" again after you pushed a small fix.Beginner