Files
wrkflw/cliff.toml
2025-04-30 17:22:38 +05:30

77 lines
2.6 KiB
TOML

[changelog]
# The header of the changelog
header = """
# Changelog
All notable changes to wrkflw will be documented in this file.
"""
# Template for the changelog body
body = """
{% if version %}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}
## [unreleased]
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | icon }} {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}**BREAKING:** {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/bahdotsh/wrkflw/commit/{{ commit.id }})){% if commit.links %} ({% for link in commit.links %}[{{ link.text }}]({{ link.href }}){% if not loop.last %}, {% endif %}{% endfor %}){% endif %}
{% endfor %}
{% endfor %}
{% if contributors %}
### ❤️ Contributors
{% for contributor in contributors %}
- {{ contributor.name }} <{{ contributor.email }}>
{% endfor %}
{% endif %}
"""
# Remove the leading and trailing whitespace from the template
trim = true
# The footer of the changelog
footer = """
<!-- generated by git-cliff -->
"""
# This determines how the links to commits are formatted
[git]
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->⛰️ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor\\(clippy\\)", skip = true },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore(deps.*)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore\\(npm\\).*yarn\\.lock", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# Define the GitHub repository URL for commit links
[git.link]
# Format: https://github.com/USER/REPO/commit/{}
commit_link = "https://github.com/bahdotsh/wrkflw/commit/{}"
# Format of the git commit link
link_parsers = [
{ pattern = "#(\d+)", href = "https://github.com/bahdotsh/wrkflw/issues/$1" },
]
filter_commits = true
tag_pattern = "v[0-9]*"
ignore_tags = ""
date_format = "%Y-%m-%d"
sort_commits = "oldest"