-
Notifications
You must be signed in to change notification settings - Fork 452
Add retry plugin and related options #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you bump the version to 6.2.1
in package.json
?
src/retry-options.ts
Outdated
retries | ||
} | ||
|
||
core.info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be debug?
Users might not want every step to output this information
@joshmgross what do you think about 6.3.0 since this is adding a feature, and not just a bug fix? |
👍 Sounds good to me |
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | minor | `v6.2.0` -> `v6.3.2` | --- ### Release Notes <details> <summary>actions/github-script</summary> ### [`v6.3.2`](https://togithub.com/actions/github-script/releases/tag/v6.3.2) [Compare Source](https://togithub.com/actions/github-script/compare/v6.3.1...v6.3.2) ##### What's Changed - Update [@​actions/core](https://togithub.com/actions/core) to 1.10.0 by [@​rentziass](https://togithub.com/rentziass) in [https://github.com/actions/github-script/pull/295](https://togithub.com/actions/github-script/pull/295) ##### New Contributors - [@​rentziass](https://togithub.com/rentziass) made their first contribution in [https://github.com/actions/github-script/pull/295](https://togithub.com/actions/github-script/pull/295) **Full Changelog**: actions/github-script@v6.3.1...v6.3.2 ### [`v6.3.1`](https://togithub.com/actions/github-script/releases/tag/v6.3.1) [Compare Source](https://togithub.com/actions/github-script/compare/v6.3.0...v6.3.1) #### What's Changed - Fix overriding request options from [@​actions/github](https://togithub.com/actions/github) by [@​luketomlinson](https://togithub.com/luketomlinson) in [https://github.com/actions/github-script/pull/293](https://togithub.com/actions/github-script/pull/293) **Full Changelog**: actions/github-script@v6.3.0...v6.3.1 ### [`v6.3.0`](https://togithub.com/actions/github-script/releases/tag/v6.3.0) [Compare Source](https://togithub.com/actions/github-script/compare/v6.2.0...v6.3.0) #### What's Changed - Add retry plugin and related options by [@​luketomlinson](https://togithub.com/luketomlinson) in [https://github.com/actions/github-script/pull/288](https://togithub.com/actions/github-script/pull/288), see https://github.com/actions/github-script/tree/v6.3.0#retries for more information. #### New Contributors - [@​luketomlinson](https://togithub.com/luketomlinson) made their first contribution in [https://github.com/actions/github-script/pull/288](https://togithub.com/actions/github-script/pull/288) **Full Changelog**: actions/github-script@v6.2.0...v6.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/DeFiCh/metachain). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTYuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMi4wIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR adds a few new features:
retries
: the number of times to retry a failed requestretryAfter
: a delay after retryingdoNotRetry
: a list of HTTP status codes to NOT retryThese options largely mirror the options from the octokit plugin.
These options are completely opt in and require you to be explicit:
retryAfter
anddoNotRetry
will have no effect unlessretries
is set.fixes #104