mirror of
https://github.com/actions/stale.git
synced 2025-12-10 20:21:20 +00:00
update logging message for exempt labels
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -526,14 +526,15 @@ class IssuesProcessor {
|
||||
issueLogger.info(`This $$type has a stale label`);
|
||||
}
|
||||
else {
|
||||
issueLogger.info(`This $$type hasn't a stale label`);
|
||||
issueLogger.info(`This $$type doesn't have a stale label`);
|
||||
}
|
||||
const exemptLabels = words_to_list_1.wordsToList(issue.isPullRequest
|
||||
? this.options.exemptPrLabels
|
||||
: this.options.exemptIssueLabels);
|
||||
if (exemptLabels.some((exemptLabel) => is_labeled_1.isLabeled(issue, exemptLabel))) {
|
||||
if (issue.isStale) {
|
||||
issueLogger.info(`An exempt label was added after the stale label.`);
|
||||
// issueLogger.info(`An exempt label was added after the stale label.`);
|
||||
issueLogger.info(`This $$type has an exempt label, removing the stale label.`);
|
||||
yield this._removeStaleLabel(issue, staleLabel);
|
||||
}
|
||||
issueLogger.info(`Skipping this $$type because it has an exempt label`);
|
||||
|
||||
Reference in New Issue
Block a user