From 990266dda6cd6d1c228f741f38dbd3c375a0f0b9 Mon Sep 17 00:00:00 2001 From: Ross Brodbeck Date: Fri, 28 Aug 2020 14:01:16 -0400 Subject: [PATCH] Add dist file --- dist/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index f158b771..60b4e196 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1464,7 +1464,8 @@ function getAndValidateArgs() { debugOnly: core.getInput('debug-only') === 'true', ascending: core.getInput('ascending') === 'true', skipStalePrMessage: core.getInput('skip-stale-pr-message') === 'true', - skipStaleIssueMessage: core.getInput('skip-stale-issue-message') === 'true' + skipStaleIssueMessage: core.getInput('skip-stale-issue-message') === 'true', + processDrafts: core.getInput('process-drafts') === 'true' }; for (const numberInput of [ 'days-before-stale', @@ -2606,6 +2607,10 @@ class IssueProcessor { core.info(`Skipping ${issueType} because it is locked`); continue; // don't process locked issues } + if (issue.draft && !this.options.processDrafts) { + core.info(`Skipping ${issueType} because it is a draft`); + continue; // don't process drafts + } if (exemptLabels.some((exemptLabel) => IssueProcessor.isLabeled(issue, exemptLabel))) { core.info(`Skipping ${issueType} because it has an exempt label`); continue; // don't process exempt issues