fix: make release PR creation robust against race conditions #19

Merged
argoyle merged 1 commits from fix/release-pr-robustness into main 2026-03-23 15:52:26 +00:00

1 Commits

Author SHA1 Message Date
argoyle 581ccba72e fix: make release PR creation robust against race conditions
Two fixes:
- Use BASE_BRANCH (with fallback) instead of DEFAULT_BRANCH for the
  PR base field, preventing empty base causing 404
- Replace fixed sleep with branch readiness poll (up to 10 attempts)
  and add retry loop for PR creation (up to 5 attempts), fixing
  intermittent 404 when Gitea hasn't indexed the branch yet

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:51:47 +01:00