@@ -41,28 +41,17 @@ git_tag_enable = true
4141[changelog ]
4242# Configure changelog generation using conventional commits
4343commit_parsers = [
44- { message = " ^feat" , group = " Features" },
45- { message = " ^fix" , group = " Bug Fixes" },
46- { message = " ^docs" , group = " Documentation" },
47- { message = " ^perf" , group = " Performance" },
48- { message = " ^refactor" , group = " Refactor" },
44+ # Only include commits with PR references (merge commits)
45+ # NOTE: This will only work if merge commits adopt the PR name (configured in repo settings).
46+ { message = " ^feat.*\\ (#\\ d+\\ )" , group = " Features" },
47+ { message = " ^fix.*\\ (#\\ d+\\ )" , group = " Bug Fixes" },
48+ { message = " ^docs.*\\ (#\\ d+\\ )" , group = " Documentation" },
49+ { message = " ^perf.*\\ (#\\ d+\\ )" , group = " Performance" },
50+ { message = " ^refactor.*\\ (#\\ d+\\ )" , group = " Refactor" },
51+
52+ # Skip release commits
4953 { message = " ^feat\\ (release\\ )" , skip = true },
50- { message = " ^chore" , skip = true },
51- ]
52-
53- # Strip conventional commit prefixes from messages in changelog
54- # This turns "feat: add feature" into "add feature"
55- # commit_preprocessors = [
56- # { pattern = '^(feat|fix|docs|perf|refactor|test|chore|style|ci|build)(\(.+\))?: ', replace = "" },
57- # ]
5854
59- # # Custom body template to format commits as:
60- # # - support histogram bucket configuration attribute by @mempirate in #11
61- # body = """
62- # {% for group, commits in commits | group_by(attribute="group") -%}
63- # ### {{ group }}
64- # {% for commit in commits -%}
65- # - {{ commit.message }}{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}{% if commit.remote.pr_number %} in https://github.com/chainbound/prometric/pull/{{ commit.remote.pr_number }}{% endif %}
66- # {% endfor -%}
67- # {% endfor -%}
68- # """
55+ # Skip everything else (individual commits without PR numbers)
56+ { message = " .*" , skip = true },
57+ ]
0 commit comments