Add a test for un-staling

This commit is contained in:
Ross Brodbeck
2020-05-11 10:29:41 -04:00
parent 51cc4676ff
commit 379e98cf36
3 changed files with 44 additions and 10 deletions

2
dist/index.js vendored
View File

@@ -8452,6 +8452,7 @@ class IssueProcessor {
this.operationsLeft = 0;
this.staleIssues = [];
this.closedIssues = [];
this.removedLabelIssues = [];
this.options = options;
this.operationsLeft = options.operationsPerRun;
this.client = new github.GitHub(options.repoToken);
@@ -8632,6 +8633,7 @@ class IssueProcessor {
removeLabel(issue, label) {
return __awaiter(this, void 0, void 0, function* () {
core.debug(`Removing label ${label} from issue #${issue.number} - ${issue.title}`);
this.removedLabelIssues.push(issue);
this.operationsLeft -= 1;
if (this.options.debugOnly) {
return;