From fd837a17e5f5b1d12ba03a55f4adcb01ef22c496 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Mon, 27 Feb 2023 09:10:43 +0100 Subject: [PATCH] Resolve changes requests --- dist/index.js | 3 +-- package.json | 2 +- src/classes/issues-processor.ts | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dist/index.js b/dist/index.js index c4129cb9..b97fe927 100644 --- a/dist/index.js +++ b/dist/index.js @@ -399,7 +399,7 @@ class IssuesProcessor { this.addedCloseCommentIssues = []; this._logger = new logger_1.Logger(); this.options = options; - this.client = (0, github_1.getOctokit)(this.options.repoToken, {}, plugin_retry_1.retry); + this.client = (0, github_1.getOctokit)(this.options.repoToken, undefined, plugin_retry_1.retry); this.operations = new stale_operations_1.StaleOperations(this.options); this._logger.info(logger_service_1.LoggerService.yellow(`Starting the stale action process...`)); if (this.options.debugOnly) { @@ -672,7 +672,6 @@ class IssuesProcessor { } catch (error) { const rethrow = Error(`Getting issues was blocked by the error: ${error.message}`); - rethrow.stack = `${error.stack.split('\n').slice(0, 2).join('\n')}\n${error.stack}`; throw error; } }); diff --git a/package.json b/package.json index 70ab6537..53453176 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ ], "engines": { "node": "16", - "npm": "8" + "npm": ">=7.0.0 <10.0.0-0" }, "author": "GitHub", "license": "MIT", diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index db885f69..93ee6dcb 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -75,7 +75,7 @@ export class IssuesProcessor { constructor(options: IIssuesProcessorOptions) { this.options = options; - this.client = getOctokit(this.options.repoToken, {}, retry); + this.client = getOctokit(this.options.repoToken, undefined, retry); this.operations = new StaleOperations(this.options); this._logger.info( @@ -560,9 +560,6 @@ export class IssuesProcessor { const rethrow = Error( `Getting issues was blocked by the error: ${error.message}` ); - rethrow.stack = `${error.stack.split('\n').slice(0, 2).join('\n')}\n${ - error.stack - }`; throw error; } }