Unblock Forgejo merge 500 on empty-diff PRs #1331

Merged
coilyco-ops merged 1 commit from issue-1330-replacement into main 2026-07-15 06:17:14 +00:00
Member

This fixes the Forgejo merge 500 on stale/no-op PRs by teaching ward to short-circuit an open PR that already matches main instead of POSTing a merge request that Forgejo turns into a 500. That matches the live state of #1325, whose head tree now matches main.

  • Added empty-diff detection to the native PR merge paths.
  • Added tests for the direct merge and director merge flows.
  • Verification: go test ./...

closes #1330
ward.workflow: pull-request-and-merge

This fixes the Forgejo merge 500 on stale/no-op PRs by teaching ward to short-circuit an open PR that already matches `main` instead of POSTing a merge request that Forgejo turns into a 500. That matches the live state of #1325, whose head tree now matches `main`. - Added empty-diff detection to the native PR merge paths. - Added tests for the direct merge and director merge flows. - Verification: `go test ./...` closes #1330 ward.workflow: pull-request-and-merge
fix: short-circuit empty PR merges
All checks were successful
test / test (pull_request) Successful in 51s
92a95a43b9
Sign in to join this conversation.
No description provided.