From 2f88c1396dcdc256f144b938869304b6a3cbbe0f Mon Sep 17 00:00:00 2001 From: joe fleming Date: Wed, 1 May 2019 17:28:15 -0700 Subject: [PATCH] fix: function without PULL_LABEL_FILTER --- src/index.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.mjs b/src/index.mjs index fcc4f18..fdc809e 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -63,7 +63,10 @@ async function ghActionBot() { } // 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( `SKIP PULL #${ pull.number