simple-commit 1.0.1

A little CLI written in rust to improve your dirty commits into conventional ones.
# https://git-cliff.org/docs/configuration

[changelog]

header = ""

# template for the changelog body

# https://keats.github.io/tera/docs/#introduction

body = """
{% if version %}\

## New Version [{{ version | trim_start_matches(pat="v") }}]
{% else %}\

## [unreleased]
{% endif %}\

{% for group, commits in commits | group_by(attribute="group") %}
    ### {{ group | striptags | trim | upper_first }}
    {% for commit in commits %}
        - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\

            {% if commit.breaking %}[**breaking**] {% endif %}\

            {{ commit.message | upper_first }}\

    {% endfor %}
{% endfor %}\n
"""

footer = ""

trim = true



[git]

# parse the commits based on https://www.conventionalcommits.org

conventional_commits = true

# filter out the commits that are not conventional

filter_unconventional = true

split_commits = false

# sort the commits inside sections by oldest/newest order

sort_commits = "newest"

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", 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|^ci", group = "<!-- 7 -->โš™๏ธ Miscellaneous Tasks" },

  { body = ".*security", group = "<!-- 8 -->๐Ÿ›ก๏ธ Security" },

  { message = "^revert", group = "<!-- 9 -->โ—€๏ธ Revert" },

]