feat(only-labels): add 2 new options to distinguish issue and PR configs (#336)

* feat(assignees): add new option to avoid stale for assignees

closes #271

* test: add more coverage

* docs: fix readme format issue

* docs: reorder and enhance typo

* docs(contributing): add more information about the npm scripts

* feat(only-labels): add new options to customize it for issues and PR

closes #308
This commit is contained in:
Geoffrey Testelin
2021-03-01 01:08:33 +01:00
committed by GitHub
parent 836169b81a
commit 0e95ddbecb
9 changed files with 1246 additions and 4 deletions

View File

@@ -39,6 +39,8 @@ function _getAndValidateArgs(): IIssuesProcessorOptions {
closePrLabel: core.getInput('close-pr-label'),
exemptPrLabels: core.getInput('exempt-pr-labels'),
onlyLabels: core.getInput('only-labels'),
onlyIssueLabels: core.getInput('only-issue-labels'),
onlyPrLabels: core.getInput('only-pr-labels'),
operationsPerRun: parseInt(
core.getInput('operations-per-run', {required: true})
),
@@ -106,4 +108,4 @@ function _toOptionalBoolean(
return undefined;
}
_run();
void _run();