From 6c50d094106d415dd54e9b2e935d1a03a78643fa Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Sat, 7 Aug 2021 15:09:15 -0400 Subject: [PATCH] include checkBranch in checkMatch --- src/labeler.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/labeler.ts b/src/labeler.ts index a0e46c3a..301f9313 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -241,6 +241,12 @@ function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean { } } + if (matchConfig.branch !== undefined) { + if (!checkBranch(matchConfig.branch)) { + return false; + } + } + return true; }