From c6a5e2ab5d99b5c1a0ba674225a0564cb7ac3ef5 Mon Sep 17 00:00:00 2001 From: Tom Keller Date: Fri, 24 Apr 2020 11:32:28 -0700 Subject: [PATCH] fix: ancient issue closing didn't work with PRs --- src/entrypoint.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/entrypoint.js b/src/entrypoint.js index 81e0144..a8ef87a 100644 --- a/src/entrypoint.js +++ b/src/entrypoint.js @@ -38,7 +38,7 @@ function getAndValidateInputs() { exemptPrLabel: process.env.EXEMPT_PR_LABEL, responseRequestedLabel: process.env.RESPONSE_REQUESTED_LABEL, minimumUpvotesToExempt: parseInt(process.env.MINIMUM_UPVOTES_TO_EXEMPT), - dryrun: (String(process.env.DRYRUN).toLowerCase() === 'true'), + dryrun: String(process.env.DRYRUN).toLowerCase() === 'true', }; for (const numberInput of [ @@ -69,9 +69,12 @@ async function processIssues(client, args) { const isPr = 'pull_request' in issue ? true : false; const staleMessage = isPr ? args.stalePrMessage : args.staleIssueMessage; + /* const ancientMessage = isPr ? args.ancientPrMessage : args.ancientIssueMessage; + */ + const ancientMessage = args.ancientIssueMessage; const staleLabel = isPr ? args.stalePrLabel : args.staleIssueLabel; const exemptLabel = isPr ? args.exemptPrLabel : args.exemptIssueLabel;