Compare commits

..

1 Commits

Author SHA1 Message Date
John Sudol
663c9aae2b update engines 2022-12-02 17:18:47 +00:00
4 changed files with 8 additions and 14 deletions

View File

@@ -246,8 +246,8 @@ Required Permission: `pull-requests: write`
#### exempt-issue-labels #### exempt-issue-labels
Comma separated list of labels that exclude the issue from being marked as stale The label(s) that can exempt to automatically mark as stale the issues.
(e.g: `question,bug`) It can be a comma separated list of labels (e.g: `question,bug`).
If unset (or an empty string), this option will not alter the stale workflow. If unset (or an empty string), this option will not alter the stale workflow.
@@ -255,8 +255,8 @@ Default value: unset
#### exempt-pr-labels #### exempt-pr-labels
Comma separated list of labels that exclude the pull request from being marked as stale The label(s) that can exempt to automatically mark as stale the pull requests.
(e.g: `need-help,WIP`) It can be a comma separated list of labels (e.g: `need-help,WIP`).
If unset (or an empty string), this option will not alter the stale workflow. If unset (or an empty string), this option will not alter the stale workflow.

4
dist/index.js vendored
View File

@@ -532,10 +532,8 @@ class IssuesProcessor {
? this.options.exemptPrLabels ? this.options.exemptPrLabels
: this.options.exemptIssueLabels); : this.options.exemptIssueLabels);
if (exemptLabels.some((exemptLabel) => is_labeled_1.isLabeled(issue, exemptLabel))) { if (exemptLabels.some((exemptLabel) => is_labeled_1.isLabeled(issue, exemptLabel))) {
// check to see if the issue is stale and has an exempt label
// see issue #136 for more details
if (issue.isStale) { if (issue.isStale) {
issueLogger.info(`This $$type has both an exempt and stale label, proceeding to remove the stale label.`); issueLogger.info(`An exempt label was added after the stale label.`);
yield this._removeStaleLabel(issue, staleLabel); yield this._removeStaleLabel(issue, staleLabel);
} }
issueLogger.info(`Skipping this $$type because it has an exempt label`); issueLogger.info(`Skipping this $$type because it has an exempt label`);

View File

@@ -32,8 +32,8 @@
"stale" "stale"
], ],
"engines": { "engines": {
"node": "12", "node": "16",
"npm": "6" "npm": "8"
}, },
"author": "GitHub", "author": "GitHub",
"license": "MIT", "license": "MIT",

View File

@@ -337,12 +337,8 @@ export class IssuesProcessor {
isLabeled(issue, exemptLabel) isLabeled(issue, exemptLabel)
) )
) { ) {
// check to see if the issue is stale and has an exempt label
// see issue #136 for more details
if (issue.isStale) { if (issue.isStale) {
issueLogger.info( issueLogger.info(`An exempt label was added after the stale label.`);
`This $$type has both an exempt and stale label, proceeding to remove the stale label.`
);
await this._removeStaleLabel(issue, staleLabel); await this._removeStaleLabel(issue, staleLabel);
} }