From e8959eea141ba523a96a538d6f32b0f8c8cccbd6 Mon Sep 17 00:00:00 2001 From: joe fleming Date: Thu, 28 Feb 2019 17:33:34 -0700 Subject: [PATCH] feat: support multiple matching labels must match all labels to pass --- src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.mjs b/src/index.mjs index 5ca79c6..b3a1297 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -62,7 +62,7 @@ async function ghActionBot() { } // 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( `SKIP PULL #${ pull.number