Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f88c1396d | |||
| ec5805a7d9 | |||
| 38f203e304 |
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user