fix: make release PR creation robust against race conditions #19
Reference in New Issue
Block a user
Delete Branch "fix/release-pr-robustness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two fixes for intermittent release workflow failures:
BASE_BRANCHinstead ofDEFAULT_BRANCHfor the PRbasefield —BASE_BRANCHhas a:-mainfallback, preventing an empty base from causing a 404sleep 3with proper polling and retry — polls for branch readiness (up to 10 attempts) before creating the PR, then retries PR creation (up to 5 attempts) with backoffFixes the
Error creating PR (HTTP 404)seen when Gitea hasn't fully indexed thenext-releasebranch by the time the PR creation request fires.🤖 Generated with Claude Code