feat: remove the only-labels option

BREAKING CHANGE:
The option only-labels was removed
This commit is contained in:
TESTELIN Geoffrey
2021-10-08 20:39:44 +02:00
parent a8c5bb1c29
commit 6299c36a0d
11 changed files with 85 additions and 139 deletions

View File

@@ -640,8 +640,8 @@ export class IssuesProcessor {
);
const daysBeforeClose: number = issue.isPullRequest
? this._getDaysBeforePrClose()
: this._getDaysBeforeIssueClose();
? this.options.daysBeforePrClose
: this.options.daysBeforeIssueClose;
issueLogger.info(
`Days before $$type close: ${LoggerService.cyan(daysBeforeClose)}`
@@ -969,18 +969,6 @@ export class IssuesProcessor {
: this.options.daysBeforePrStale;
}
private _getDaysBeforeIssueClose(): number {
return isNaN(this.options.daysBeforeIssueClose)
? this.options.daysBeforeClose
: this.options.daysBeforeIssueClose;
}
private _getDaysBeforePrClose(): number {
return isNaN(this.options.daysBeforePrClose)
? this.options.daysBeforeClose
: this.options.daysBeforePrClose;
}
private _getOnlyLabels(issue: Issue): string {
if (issue.isPullRequest) {
return this.options.onlyPrLabels;