Skip to content

Commit

Permalink
Resolve changes requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Feb 27, 2023
1 parent 522551c commit 6fa3f0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"engines": {
"node": "16",
"npm": "8"
"npm": ">=7.0.0 <10.0.0-0"
},
"author": "GitHub",
"license": "MIT",
Expand Down
5 changes: 1 addition & 4 deletions src/classes/issues-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6fa3f0e

Please sign in to comment.