Skip to content

Tags: Tradeshift/create-pull-request

Tags

v8.1.1

Toggle v8.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

v8

Toggle v8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

v8.1.0

Toggle v8.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

v8.0.0

Toggle v8.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: v8 (peter-evans#4260)

v7.0.11

Toggle v7.0.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: restrict remote prune to self-hosted runners (peter-evans#4250)

v7.0.10

Toggle v7.0.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

v7

Toggle v7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: restrict remote prune to self-hosted runners (peter-evans#4250)

v7.0.9

Toggle v7.0.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: compatibility with actions/checkout@v6 (peter-evans#4230)

Temporarily hides checkout@v6 credential files to prevent duplicate Authorization headers.

Fixes peter-evans#4228

v7.0.8

Toggle v7.0.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: suppress output for some git operations (peter-evans#3776)

* fix: suppress output for some git operations

* update dist

v7.0.7

Toggle v7.0.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>