[changelog]
header = ""
footer = ""
trim = false
body = """
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d", timezone="America/Chicago") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | split(pat="@") | last }}
{% for commit in commits %}
- {% if commit.breaking %}**Breaking:** {% endif %}{{ commit.message | upper_first }}
{%- if commit.body %}
{{ commit.body | trim | replace(from="\n", to="\n ") }}
{%- endif %}
{%- endfor %}
{% endfor %}"""
[git]
conventional_commits = true
filter_unconventional = true
filter_commits = true
tag_pattern = "v[0-9]*"
topo_order = false
sort_commits = "oldest"
protect_breaking_commits = true
commit_preprocessors = [
{ pattern = " *:[a-z0-9_+-]+: *", replace = " " },
{ pattern = " *[\\x{1F300}-\\x{1FAFF}\\x{2600}-\\x{27BF}]+ *", replace = " " },
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/justin-carver/sculkr/issues/${1}))" },
]
commit_parsers = [
{ message = "^release v", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^[Mm]erge (pull request|branch|remote-tracking)", skip = true },
{ message = "^feat", group = "0@Added" },
{ message = "^(refactor|perf|style|docs)", group = "1@Changed" },
{ message = "^deprecat", group = "2@Deprecated" },
{ message = "^remove", group = "3@Removed" },
{ message = "^fix", group = "4@Fixed" },
{ message = "^sec(urity)?", group = "5@Security" },
{ message = "^(chore|ci|build|test)", skip = true },
]