- include error in log for bad replacer regex
- allow category only with rules (and no labels) in exhaustive mode
This commit is contained in:
@@ -54,7 +54,7 @@ export function buildRegex(
|
||||
onEmpty
|
||||
}
|
||||
} catch (e) {
|
||||
core.warning(`⚠️ Bad replacer regex: ${regex.pattern}`)
|
||||
core.warning(`⚠️ Bad regex: ${regex.pattern} (${e})`)
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -197,7 +197,7 @@ export function buildChangelog(diffInfo: DiffInfo, origPrs: PullRequestInfo[], o
|
||||
if (category.exhaustive_rules !== undefined) {
|
||||
exhaustive_rules = category.exhaustive_rules
|
||||
}
|
||||
if (matched && category.rules !== undefined) {
|
||||
if ((matched || category.labels === undefined) && category.rules !== undefined) {
|
||||
matched = matchesRules(category.rules, pr, exhaustive_rules)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user