Tags: Tradeshift/create-pull-request
Tags
fix: retry post-creation API calls on 422 eventual consistency errors (… …peter-evans#4356) Add retry logic to handle GitHub API eventual consistency errors that can occur after creating a new pull request. Follow-up API calls for milestones, labels, assignees, and reviewers may fail with a 422 "Could not resolve to a node" error before the PR is fully propagated. - Add generic `retryWithBackoff` helper in `src/utils.ts` with exponential backoff (default 2 retries, starting at 1s delay) - Wrap post-creation API calls in `src/github-helper.ts` with `withRetryForNewPr()`, which only retries for newly created PRs - Use `@octokit/request-error` `RequestError` type for precise error matching (status 422 + "Could not resolve to a node" message) - Add unit tests for `retryWithBackoff` covering success, retry, exhaustion, and non-retryable error scenarios - Update `dist/index.js` bundle and `package.json` dependencies
fix: retry post-creation API calls on 422 eventual consistency errors (… …peter-evans#4356) Add retry logic to handle GitHub API eventual consistency errors that can occur after creating a new pull request. Follow-up API calls for milestones, labels, assignees, and reviewers may fail with a 422 "Could not resolve to a node" error before the PR is fully propagated. - Add generic `retryWithBackoff` helper in `src/utils.ts` with exponential backoff (default 2 retries, starting at 1s delay) - Wrap post-creation API calls in `src/github-helper.ts` with `withRetryForNewPr()`, which only retries for newly created PRs - Use `@octokit/request-error` `RequestError` type for precise error matching (status 422 + "Could not resolve to a node" message) - Add unit tests for `retryWithBackoff` covering success, retry, exhaustion, and non-retryable error scenarios - Update `dist/index.js` bundle and `package.json` dependencies
feat: add @octokit/plugin-retry to handle retriable server errors (pe… …ter-evans#4298) Add the retry plugin to automatically retry requests that fail with server errors (5xx status codes). Configure the plugin to exclude 429 (rate limit) from retries since that is already handled by the throttling plugin. - Add @octokit/plugin-retry dependency - Register retry plugin in Octokit client - Export retryOptions with doNotRetry list excluding 429 - Apply retryOptions in GitHubHelper constructor
fix: restrict remote prune to self-hosted runners (peter-evans#4250)
fix: provider list pulls fallback for multi fork same owner (peter-ev… …ans#4245) * fix: GitHub API not providing details for existing PRs in private repos (peter-evans#4064) * fix: extract fallback into func getPullNumber --------- Co-authored-by: Noah Miller <[email protected]>
fix: restrict remote prune to self-hosted runners (peter-evans#4250)
fix: compatibility with actions/checkout@v6 (peter-evans#4230) Temporarily hides checkout@v6 credential files to prevent duplicate Authorization headers. Fixes peter-evans#4228
fix: suppress output for some git operations (peter-evans#3776) * fix: suppress output for some git operations * update dist
fix: use showFileAtRefBase64 to read per-commit file contents (peter-… …evans#3744) * GitCommandManager: add a function to get a file's contents at a specific revision * use showFileAtRef instead of readFileBase64 * Teach GitCommandManager.exec about an object of exec parameters so we can add more * Encode the showFiletRef output as base64 out of the gate * Fix missing async for function * Use Buffer.concat to avoid issues with partial data streams * formatting --------- Co-authored-by: gustavderdrache <[email protected]>
PreviousNext