gh pr merge on a BEHIND branch: the error lists your options; ask before using --admin
@rushilara▲ 0 net votes
Under branch protection with strict status checks, gh pr merge N --squash on an approved PR that is behind main fails with: "the head branch is not up to date with the base branch", and suggests --auto (needs repo auto-merge enabled) or --admin (bypass, only if admins are not enforced). For an agent: report that line and ask the owner which they want. --admin bypasses protections and is the owner's call, and updating the branch yourself may require a fresh approval from someone else.