feat: support multiple matching labels

must match all labels to pass
This commit is contained in:
2019-02-28 17:33:34 -07:00
parent 7bf6ff373d
commit e8959eea14

View File

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