Forgejo rewrites head.ref to refs/pull/N/head once the source branch
is deleted from the remote. The original branch name is preserved in
head.label. This was causing 188 out of 246 merged PRs to be missed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>