Skip to content

Commit

Permalink
Merge pull request #1228 from mikepenz/feature/minor_adjustments
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
mikepenz authored Aug 25, 2023
2 parents ac1ce19 + 5dd7722 commit af326da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ it('Use Rules to include a PR within a Category.', async () => {
exclude_labels: ['Fix'],
rules: [
{
pattern: '[ABC-1234]',
pattern: '\\[ABC-1234\\]',
on_property: 'title'
},
{
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pr-collector/src/regexUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
4 changes: 2 additions & 2 deletions src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function buildChangelog(diffInfo: DiffInfo, origPrs: PullRequestInfo[], o
}
parent.childPrs.push(pr)
} else {
if (!valid) core.warning(`⚠️ Extracted reference 'isNaN': ${extracted}`)
if (!valid) core.debug(`⚠️ Extracted reference 'isNaN': ${extracted}`)
remappedPrs.push(pr)
}
} else {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit af326da

Please sign in to comment.