fix(release): add retry and delay for PR creation to handle Gitea API race condition #18

Merged
argoyle merged 1 commits from fix-release-pr-race-condition into main 2026-02-23 13:13:24 +00:00
Owner

The PR creation curl immediately follows branch creation via the Contents
API, but Gitea may not have fully indexed the new branch for pull request
operations yet. This causes intermittent HTTP errors on the first run.

  • Add sleep 3 before PR creation to allow Gitea to process the new branch
  • Use --retry-all-errors so curl retries on HTTP 4xx/5xx (not just
    connection failures)
  • Capture and display the actual HTTP error code and response body on
    failure for easier debugging

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

The PR creation curl immediately follows branch creation via the Contents API, but Gitea may not have fully indexed the new branch for pull request operations yet. This causes intermittent HTTP errors on the first run. - Add sleep 3 before PR creation to allow Gitea to process the new branch - Use --retry-all-errors so curl retries on HTTP 4xx/5xx (not just connection failures) - Capture and display the actual HTTP error code and response body on failure for easier debugging Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
argoyle added 1 commit 2026-02-23 13:13:16 +00:00
The PR creation curl immediately follows branch creation via the Contents
API, but Gitea may not have fully indexed the new branch for pull request
operations yet. This causes intermittent HTTP errors on the first run.

- Add sleep 3 before PR creation to allow Gitea to process the new branch
- Use --retry-all-errors so curl retries on HTTP 4xx/5xx (not just
  connection failures)
- Capture and display the actual HTTP error code and response body on
  failure for easier debugging

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
argoyle merged commit 068c6ef686 into main 2026-02-23 13:13:24 +00:00
argoyle deleted branch fix-release-pr-race-condition 2026-02-23 13:13:25 +00:00
Sign in to join this conversation.