-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathcliff.toml
More file actions
82 lines (77 loc) · 2.81 KB
/
Copy pathcliff.toml
File metadata and controls
82 lines (77 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# git-cliff ~ changelog generator configuration
# https://git-cliff.org/docs/configuration
#
# Aligned with .commitlintrc.json conventional-commit types:
# feat, fix, docs, style, refactor, perf, test, chore, revert, ci
[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\n
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
"""
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 }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}{% if commit.id %} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/HyperSafeD/Sanctifier/commit/{{ commit.id }})){% endif %}
{% endfor %}
{% endfor %}\n
"""
trim = true
postprocessor = [
{ pattern = "^\\[unreleased\\]", replace = "" },
]
[git]
conventional_commits = true
filter_unconventional = true
require_conventional = false
split_commits = false
# Commit type → changelog section mapping
# Order controls the output order of groups
commit_parsers = [
# Breaking changes always come first
{ message = "^.*", body = "BREAKING CHANGE", group = "⚠️ Breaking Changes" },
# Feature additions
{ message = "^feat", group = "### Added" },
# Security-scoped fixes (must come before generic fix)
{ message = "^fix", scope = "^security", group = "### Security" },
# Bug fixes
{ message = "^fix", group = "### Fixed" },
# Performance
{ message = "^perf", group = "### Performance" },
# Refactoring
{ message = "^refactor", group = "### Changed" },
# Documentation
{ message = "^docs", group = "### Documentation" },
# Styling
{ message = "^style", group = "### Styles" },
# Tests
{ message = "^test", group = "### Tests" },
# CI/CD
{ message = "^ci", group = "### CI/CD" },
# Reverts
{ message = "^revert", group = "### Reverts" },
# Chores (build tooling, dependencies, etc.)
{ message = "^chore", group = "### Miscellaneous" },
# Deprecations (conventional commit scope detection)
{ message = ".*", scope = "^deprecat", group = "### Deprecated" },
# Removals
{ message = ".*", scope = "^remov", group = "### Removed" },
# Security (general scope detection)
{ message = ".*", scope = "^security", group = "### Security" },
# Catch-all for unconventional commits (when filter_unconventional = false)
{ message = ".*", group = "### Other" },
]
filter_commits = false
tag_pattern = "v[0-9]*"
skip_tags = "v[0-9]+-[a-z]+"
topo_order = false
sort_commits = "oldest"