feat: support multiple matching labels
must match all labels to pass
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user