3 Commits

Author SHA1 Message Date
2f88c1396d fix: function without PULL_LABEL_FILTER 2019-05-01 17:28:15 -07:00
ec5805a7d9 docs: fix typo 2019-03-13 14:05:34 -07:00
38f203e304 chore: add new env flag to sample-env 2019-02-28 17:39:49 -07:00
3 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ Action bot for Github. Checks a repo's event stream and leaves a ghost comment w
`yarn run force owner/repo pr_number`: force a comment on a specific pr, by number `yarn run force owner/repo pr_number`: force a comment on a specific pr, by number
`yanr run clean owner/repo pr_number`: removed any comments that match the owner and body requirements `yarn run clean owner/repo pr_number`: removed any comments that match the owner and body requirements
You'll need to set some environment flags. Check `sample-env` for what is available, and you can copy the file to `.env` in the root and add your settings there as well. You'll need to set some environment flags. Check `sample-env` for what is available, and you can copy the file to `.env` in the root and add your settings there as well.

View File

@@ -3,5 +3,6 @@ COMMENT_ACTOR=username
COMMENT_BODY_REGEXP=build failed COMMENT_BODY_REGEXP=build failed
COMMENT_BODY_REGEXP_FLAGS=i COMMENT_BODY_REGEXP_FLAGS=i
PULL_LABEL_FILTER= PULL_LABEL_FILTER=
PULL_LABEL_EXCLUDE=
PULL_AUTHOR_FILTER= PULL_AUTHOR_FILTER=
PULL_RETEST_BODY=retest PULL_RETEST_BODY=retest

View File

@@ -63,7 +63,10 @@ async function ghActionBot() {
} }
// filter on label // filter on label
if (!PULL_LABEL_FILTER.split(',').every(label => pull.labels.includes(label))) { if (
PULL_LABEL_FILTER &&
!PULL_LABEL_FILTER.split(',').every(label => pull.labels.includes(label))
) {
logger.debug( logger.debug(
`SKIP PULL #${ `SKIP PULL #${
pull.number pull.number