Add skip-stale-pr-message and skip-stale-issue-message (#119)

This introduces two new flags `skip-stale-issue-message` and `skip-stale-pr-message` which would skip the message addition if these are set to true.

They are backward compatible as empty `stale-issue-message` or `stale-pr-message` will take precedence over them
This commit is contained in:
Harshit Pant
2020-07-24 17:38:48 +05:30
committed by GitHub
parent 213e2e3dbb
commit fbaa974a12
5 changed files with 209 additions and 29 deletions

View File

@@ -38,7 +38,9 @@ function getAndValidateArgs(): IssueProcessorOptions {
core.getInput('remove-stale-when-updated') === 'false'
),
debugOnly: core.getInput('debug-only') === 'true',
ascending: core.getInput('ascending') === 'true'
ascending: core.getInput('ascending') === 'true',
skipStalePrMessage: core.getInput('skip-stale-pr-message') === 'true',
skipStaleIssueMessage: core.getInput('skip-stale-issue-message') === 'true'
};
for (const numberInput of [