gitru 0.2.8

a lightweight, configurable Git commit message validation tool
Documentation
[changelog]
header = """
# ๐Ÿš€ Release Notes
"""

body = """
{% if version %}## ๐Ÿ“ฆ Version {{ version }} - {{ timestamp | date(format="%Y-%m-%d") }}{% endif %}

{% for group, commits in commits | group_by(attribute="group") %}
{% if commits | length > 0 %}
### {{ group }}
{% for commit in commits %}
- {{ commit.message | trim }} ({{ commit.id | truncate(length=7) }})
{%- if commit.body is defined and commit.body is string and commit.body | trim != "" %}
    {%- for line in commit.body | trim | split(pat="\n") %}
    {{ "    " ~ line }}
    {%- endfor %}
{%- endif %}
{% endfor %}
{%- endif %}
{% endfor %}
"""

footer = ""

[git]
conventional_commits = true
filter_unconventional = true

commit_parsers = [
    { message = "^feat", group = "โœจ Features" },
    { message = "^fix", group = "๐Ÿ› Fixes" },
    { message = "^docs", group = "๐Ÿ“ Documentation" },
    { message = "^style", group = "๐ŸŽจ Style" },
    { message = "^refactor", group = "โ™ป๏ธ Refactor" },
    { message = "^test", group = "๐Ÿงช Tests" },
    { message = "^chore", group = "๐Ÿ”ง Chore" },
    { message = "^ci", group = "๐Ÿค– CI" },
    { message = ".*", group = "Other" },
]

sort_commits = "oldest"