From 6558f67fafece5b9c692cb6db53a2c839ccc9d19 Mon Sep 17 00:00:00 2001 From: Verum Date: Sat, 7 Mar 2026 01:29:26 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20git=20cliff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cliff.toml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 cliff.toml diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..1407000 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,71 @@ +# ============================================================ +# GIT CLIFF CONFIGURATION +# ============================================================ + +[changelog] + +header = """ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on: +https://keepachangelog.com +https://semver.org +""" + +body = """ +{% if version %} +## {{ version }} โ€” {{ timestamp | date(format="%Y-%m-%d") }} +{% else %} +## Unreleased +{% endif %} + +{% for group, commits in commits | group_by(attribute="group") %} +### {{ group }} + +{% for commit in commits %} +- {{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end="") }}) +{% endfor %} +{% endfor %} +""" + +footer = """ +--- + +Generated automatically by git-cliff +""" + +trim = true + + +[git] + +conventional_commits = true +filter_unconventional = true +split_commits = false +sort_commits = "oldest" + +commit_parsers = [ + +{ message = ".*!", group = "๐Ÿ’ฅ Breaking Changes" }, +{ message = "^feat(\\(.+\\))?:", group = "๐Ÿš€ Features" }, +{ message = "^fix(\\(.+\\))?:", group = "๐Ÿ› Bug Fixes" }, +{ message = "^perf(\\(.+\\))?:", group = "โšก Performance" }, +{ message = "^refactor(\\(.+\\))?:", group = "โ™ป๏ธ Refactoring" }, +{ message = "^docs(\\(.+\\))?:", group = "๐Ÿ“š Documentation" }, +{ message = "^style(\\(.+\\))?:", group = "๐ŸŽจ Styling" }, +{ message = "^test(\\(.+\\))?:", group = "๐Ÿงช Tests" }, +{ message = "^build(\\(.+\\))?:", group = "๐Ÿ“ฆ Build System" }, +{ message = "^ci(\\(.+\\))?:", group = "โš™๏ธ CI" }, +{ message = "^chore(\\(.+\\))?:", group = "๐Ÿ”ง Maintenance" } + +] + +tag_pattern = "v[0-9]*" + + +[remote.github] + +owner = "your-user" +repo = "your-repo"