fix: function without PULL_LABEL_FILTER

This commit is contained in:
2019-05-01 17:28:15 -07:00
parent ec5805a7d9
commit 2f88c1396d

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