mirror of
https://github.com/actions/stale.git
synced 2025-12-27 02:38:17 +00:00
feat: remove the only-labels option
BREAKING CHANGE: The option only-labels was removed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user