Skip to content

Commit

Permalink
Merge pull request #17 from aws-actions/ancient-issue-pr-fix
Browse files Browse the repository at this point in the history
fix: ancient issue closing didn't work with PRs
  • Loading branch information
kellertk authored Apr 24, 2020
2 parents 6fc4cdd + c6a5e2a commit 8f2918f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8f2918f

Please sign in to comment.