Default un-stale to true in new version

This commit is contained in:
Ross Brodbeck 2020-05-11 10:34:40 -04:00
parent 299593dff1
commit 7a47124766
3 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ inputs:
default: 30 default: 30
remove-stale-when-updated: remove-stale-when-updated:
description: 'Remove stale labels from issues when they are updated or commented on.' description: 'Remove stale labels from issues when they are updated or commented on.'
default: false default: true
debug-only: debug-only:
description: 'Run the processor in debug mode without actually performing any operations on live issues.' description: 'Run the processor in debug mode without actually performing any operations on live issues.'
default: false default: false

2
dist/index.js vendored
View File

@ -3756,7 +3756,7 @@ function getAndValidateArgs() {
exemptPrLabels: core.getInput('exempt-pr-labels'), exemptPrLabels: core.getInput('exempt-pr-labels'),
onlyLabels: core.getInput('only-labels'), onlyLabels: core.getInput('only-labels'),
operationsPerRun: parseInt(core.getInput('operations-per-run', { required: true })), operationsPerRun: parseInt(core.getInput('operations-per-run', { required: true })),
removeStaleWhenUpdated: core.getInput('remove-stale-when-updated') === 'true', removeStaleWhenUpdated: !(core.getInput('remove-stale-when-updated') === 'false'),
debugOnly: core.getInput('debug-only') === 'true' debugOnly: core.getInput('debug-only') === 'true'
}; };
for (const numberInput of [ for (const numberInput of [

View File

@ -32,8 +32,9 @@ function getAndValidateArgs(): IssueProcessorOptions {
operationsPerRun: parseInt( operationsPerRun: parseInt(
core.getInput('operations-per-run', {required: true}) core.getInput('operations-per-run', {required: true})
), ),
removeStaleWhenUpdated: removeStaleWhenUpdated: !(
core.getInput('remove-stale-when-updated') === 'true', core.getInput('remove-stale-when-updated') === 'false'
),
debugOnly: core.getInput('debug-only') === 'true' debugOnly: core.getInput('debug-only') === 'true'
}; };