Fix Forgejo PR merge settle loop #1277

Merged
coilyco-ops merged 1 commit from issue-1168 into main 2026-07-14 11:08:40 +00:00
Owner

This change adds a bounded settle loop around the native Forgejo merge POST in ward agent pr merge. When Forgejo answers 405 with "Please try again later", ward now re-reads the PR and required status before retrying so it can either land once the queue clears or report the missing condition.

  • Added transient 405 retry handling and preserved the settled head SHA.
  • Added coverage for retry-then-success and status-regression diagnosis.
  • Validated with ward exec test and pre-commit run --all-files.

closes #1168

ward.workflow: pull-request-and-merge

This change adds a bounded settle loop around the native Forgejo merge POST in `ward agent pr merge`. When Forgejo answers 405 with "Please try again later", ward now re-reads the PR and required status before retrying so it can either land once the queue clears or report the missing condition. - Added transient 405 retry handling and preserved the settled head SHA. - Added coverage for retry-then-success and status-regression diagnosis. - Validated with `ward exec test` and `pre-commit run --all-files`. closes #1168 ward.workflow: pull-request-and-merge
Fix Forgejo PR merge settle loop
All checks were successful
test / test (pull_request) Successful in 36s
5d02245370
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/ward!1277
No description provided.