- include error in log for bad replacer regex

- allow category only with rules (and no labels) in exhaustive mode
This commit is contained in:
Mike Penz
2023-08-25 09:52:18 +00:00
committed by GitHub
parent 304550b714
commit 6e2d9ccd46
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export function buildRegex(
onEmpty onEmpty
} }
} catch (e) { } catch (e) {
core.warning(`⚠️ Bad replacer regex: ${regex.pattern}`) core.warning(`⚠️ Bad regex: ${regex.pattern} (${e})`)
return null return null
} }
} }
+1 -1
View File
@@ -197,7 +197,7 @@ export function buildChangelog(diffInfo: DiffInfo, origPrs: PullRequestInfo[], o
if (category.exhaustive_rules !== undefined) { if (category.exhaustive_rules !== undefined) {
exhaustive_rules = category.exhaustive_rules 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) matched = matchesRules(category.rules, pr, exhaustive_rules)
} }
} else { } else {