-
Notifications
You must be signed in to change notification settings - Fork 364
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
Upgrade Node to v20 #1110
Upgrade Node to v20 #1110
Conversation
Please review this PR. Thank you. |
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "stale-action", | |||
"version": "7.0.0", | |||
"version": "8.0.0", |
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.
"version": "8.0.0", | |
"version": "9.0.0", |
src/classes/issues-processor.ts
Outdated
|
||
type state_reason_type = | ||
| 'completed' | ||
| 'reopened' | ||
| 'not_planned' | ||
| null | ||
| undefined; |
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.
What was the reason for adding this type?
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.
While I was running npm run test few test and test suites are failed for the code
state_reason: this.options.closeIssueReason || undefined for that I have intialized status_reason and updated the line of code. Now I have rechecked the code and updated the line. All tests passed with same line now.
src/classes/issues-processor.ts
Outdated
@@ -934,7 +941,7 @@ export class IssuesProcessor { | |||
repo: context.repo.repo, | |||
issue_number: issue.number, | |||
state: 'closed', | |||
state_reason: this.options.closeIssueReason || undefined | |||
state_reason: this.options.closeIssueReason as state_reason_type |
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.
In this code update, you changed the logic. The this.options.closeIssueReason
is typed as a string. The code state_reason: this.options.closeIssueReason || undefined
means that if the this.options.closeIssueReason
is an empty string we assign state_reason
with undefined.
In your version of code this logic is changed. If the this.options.closeIssueReason
is an empty string you assign state_reason
with an empty string. What is the reason for that?
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.
To resolve the failed tests for that particular line I have added the change and I missed the logic that I am assigning the empty string. Now I have updated the logic. Thank you for the clarification.
Bumps actions/stale from 8 to 9. Release notes Sourced from actions/stale's releases. v9.0.0 Breaking Changes Action is now stateful: If the action ends because of operations-per-run then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20. What Else Changed Performance optimization that removes unnecessary API calls by @dsame #1033 fixes #792 Logs displaying current github API rate limit by @dsame #1032 addresses #1029 For more information, please read the action documentation and its section about statefulness New Contributors @jmeridth made their first contribution in actions/stale#984 @nikolai-laevskii made their first contribution in actions/stale#1020 @dusan-trickovic made their first contribution in actions/stale#1056 @aparnajyothi-y made their first contribution in actions/stale#1110 Full Changelog: actions/stale@v8...v9.0.0
Bumps actions/stale from 8 to 9. Release notes Sourced from actions/stale's releases. v9.0.0 Breaking Changes Action is now stateful: If the action ends because of operations-per-run then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20. What Else Changed Performance optimization that removes unnecessary API calls by @dsame #1033 fixes #792 Logs displaying current github API rate limit by @dsame #1032 addresses #1029 For more information, please read the action documentation and its section about statefulness New Contributors @jmeridth made their first contribution in actions/stale#984 @nikolai-laevskii made their first contribution in actions/stale#1020 @dusan-trickovic made their first contribution in actions/stale#1056 @aparnajyothi-y made their first contribution in actions/stale#1110 Full Changelog: actions/stale@v8...v9.0.0
Bumps actions/stale from 8 to 9. Release notes Sourced from actions/stale's releases. v9.0.0 Breaking Changes Action is now stateful: If the action ends because of operations-per-run then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20. What Else Changed Performance optimization that removes unnecessary API calls by @dsame #1033 fixes #792 Logs displaying current github API rate limit by @dsame #1032 addresses #1029 For more information, please read the action documentation and its section about statefulness New Contributors @jmeridth made their first contribution in actions/stale#984 @nikolai-laevskii made their first contribution in actions/stale#1020 @dusan-trickovic made their first contribution in actions/stale#1056 @aparnajyothi-y made their first contribution in actions/stale#1110 Full Changelog: actions/stale@v8...v9.0.0
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/stale](https://togithub.com/actions/stale) | action | major | `v8.0.0` -> `v9.0.0` | --- ### Release Notes <details> <summary>actions/stale (actions/stale)</summary> ### [`v9.0.0`](https://togithub.com/actions/stale/releases/tag/v9.0.0) [Compare Source](https://togithub.com/actions/stale/compare/v8.0.0...v9.0.0) #### Breaking changes 1. Action is now stateful: If the action ends because of [operations-per-run](https://togithub.com/actions/stale#operations-per-run) then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs. 2\. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20. #### What else Changed 1. Performance optimization that removes unnecessary API calls by [@​dsame](https://togithub.com/dsame) [#​1033](https://togithub.com/actions/stale/pull/1033/) fixes [#​792](https://togithub.com/actions/stale/issues/792) 2. Logs displaying current github API rate limit by [@​dsame](https://togithub.com/dsame) [#​1032](https://togithub.com/actions/stale/pull/1032) addresses [#​1029](https://togithub.com/actions/stale/issues/1029) \ For more information, please read the [action documentation](https://togithub.com/actions/stale#readme) and its [section about statefulness](https://togithub.com/actions/stale#statefulness) #### New Contributors - [@​jmeridth](https://togithub.com/jmeridth) made their first contribution in [https://github.com/actions/stale/pull/984](https://togithub.com/actions/stale/pull/984) - [@​nikolai-laevskii](https://togithub.com/nikolai-laevskii) made their first contribution in [https://github.com/actions/stale/pull/1020](https://togithub.com/actions/stale/pull/1020) - [@​dusan-trickovic](https://togithub.com/dusan-trickovic) made their first contribution in [https://github.com/actions/stale/pull/1056](https://togithub.com/actions/stale/pull/1056) - [@​aparnajyothi-y](https://togithub.com/aparnajyothi-y) made their first contribution in [https://github.com/actions/stale/pull/1110](https://togithub.com/actions/stale/pull/1110) **Full Changelog**: actions/stale@v8...v9.0.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 is behind base branch, 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, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Hapag-Lloyd/Renovate-Global-Configuration). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bumps actions/stale from 8 to 9. Release notes Sourced from actions/stale's releases. v9.0.0 Breaking Changes Action is now stateful: If the action ends because of operations-per-run then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20. What Else Changed Performance optimization that removes unnecessary API calls by @dsame #1033 fixes #792 Logs displaying current github API rate limit by @dsame #1032 addresses #1029 For more information, please read the action documentation and its section about statefulness New Contributors @jmeridth made their first contribution in actions/stale#984 @nikolai-laevskii made their first contribution in actions/stale#1020 @dusan-trickovic made their first contribution in actions/stale#1056 @aparnajyothi-y made their first contribution in actions/stale#1110 Full Changelog: actions/stale@v8...v9.0.0
Description:
Code changes for Node version upgrade to 20
Related issue:
Feature request
Check list: