Fix branch-cleanup: fall back to head.label for deleted branches #248

Merged
eblume merged 1 commit from fix/branch-cleanup-ref-label into main 2026-02-22 16:15:51 -08:00

1 commit

Author SHA1 Message Date
35630f41d1 Fix branch-cleanup: use head.label when head.ref is rewritten
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>
2026-02-22 16:15:26 -08:00