[workspace]
changelog_update = true
git_tag_enable = true
git_release_enable = true
semver_check = false
pr_labels = ["release"]
repo_url = "https://github.com/noirbizarre/git-synchronizer"
pr_branch_prefix = "release/"
[changelog]
header = """
# Changelog
"""
body = """
{% if version -%}
## ๐ [{{ version }}]{% if release_link %}({{ release_link }}){% endif %} ({{ timestamp | date(format="%Y-%m-%d") }})
{% else -%}
## [Unreleased]
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- **{{ commit.scope }}:** {{ commit.message | upper_first }} \
([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}))\
{%- if commit.links %} {% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}{% endif %}
{%- if commit.breaking %}
{% raw %} {% endraw %}๐จ **BREAKING**: {{ commit.breaking_description }}
{%- endif -%}
{%- endfor -%}
{% for commit in commits %}
{%- if not commit.scope %}
- {{ commit.message | upper_first }} \
([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}))\
{%- if commit.links %} {% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}{% endif %}
{%- if commit.breaking %}
{% raw %} {% endraw %}๐จ **BREAKING**: {{ commit.breaking_description }}
{%- endif -%}
{%- endif -%}
{%- endfor %}
{% endfor %}
{% set ctx = __tera_context -%}
{%- if ctx.remote.contributors is defined and ctx.remote.contributors | length != 0 %}
### Contributors
{%- for contributor in remote.contributors %}
- @{{ contributor.username }}
{%- endfor %}
{%- endif %}
"""
trim = true
protect_breaking_commits = true
sort_commits = "newest"
commit_preprocessors = [
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/noirbizarre/git-synchronizer/pull/${1}))" },
]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->๐ซ New features" },
{ message = "^fix", group = "<!-- 1 -->๐ Bug fixes" },
{ message = "^perf", group = "<!-- 2 -->๐ Performance" },
{ message = "^doc", group = "<!-- 3 -->๐ Documentation" },
{ message = "^refactor", group = "<!-- 4 -->๐ง Refactorings" },
{ message = "^build", group = "<!-- 5 -->๐ฆ Build" },
{ message = "^ci", group = "<!-- 6 -->๐ธ Continuous Integration" },
{ message = "^test", group = "<!-- 7 -->๐ฆ Testing" },
{ message = "^style", group = "<!-- 8 -->๐จ Style" },
{ message = "^revert", group = "<!-- 9 -->๐ Reverted" },
{ message = "^wip", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore|^misc", group = "<!-- 10 -->๐งน Chores" },
]