Resolve changes requests
This commit is contained in:
parent
b5b320bc53
commit
fd837a17e5
|
@ -399,7 +399,7 @@ class IssuesProcessor {
|
||||||
this.addedCloseCommentIssues = [];
|
this.addedCloseCommentIssues = [];
|
||||||
this._logger = new logger_1.Logger();
|
this._logger = new logger_1.Logger();
|
||||||
this.options = options;
|
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.operations = new stale_operations_1.StaleOperations(this.options);
|
||||||
this._logger.info(logger_service_1.LoggerService.yellow(`Starting the stale action process...`));
|
this._logger.info(logger_service_1.LoggerService.yellow(`Starting the stale action process...`));
|
||||||
if (this.options.debugOnly) {
|
if (this.options.debugOnly) {
|
||||||
|
@ -672,7 +672,6 @@ class IssuesProcessor {
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
const rethrow = Error(`Getting issues was blocked by the error: ${error.message}`);
|
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;
|
throw error;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "16",
|
"node": "16",
|
||||||
"npm": "8"
|
"npm": ">=7.0.0 <10.0.0-0"
|
||||||
},
|
},
|
||||||
"author": "GitHub",
|
"author": "GitHub",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -75,7 +75,7 @@ export class IssuesProcessor {
|
||||||
|
|
||||||
constructor(options: IIssuesProcessorOptions) {
|
constructor(options: IIssuesProcessorOptions) {
|
||||||
this.options = options;
|
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.operations = new StaleOperations(this.options);
|
||||||
|
|
||||||
this._logger.info(
|
this._logger.info(
|
||||||
|
@ -560,9 +560,6 @@ export class IssuesProcessor {
|
||||||
const rethrow = Error(
|
const rethrow = Error(
|
||||||
`Getting issues was blocked by the error: ${error.message}`
|
`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;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue