mirror of
https://github.com/actions/labeler.git
synced 2025-12-12 04:27:34 +00:00
include checkBranch in checkMatch
This commit is contained in:
@@ -241,6 +241,12 @@ function checkMatch(changedFiles: string[], matchConfig: MatchConfig): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
if (matchConfig.branch !== undefined) {
|
||||
if (!checkBranch(matchConfig.branch)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user