-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcliff.toml
More file actions
87 lines (78 loc) · 3.13 KB
/
cliff.toml
File metadata and controls
87 lines (78 loc) · 3.13 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
83
84
85
86
87
[remote.github]
owner = "Dayclone"
repo = "opencode-on-autopilot"
[changelog]
header = """
"""
body = """
{% if version -%}
{% if previous.version -%}
## Changes in {{ version }}
{% else -%}
## Initial Release
{% endif -%}
{% else -%}
## Recent Changes
{% endif -%}
{% if breaking_commits %}
### 💥 Breaking Changes
{% for commit in breaking_commits -%}
- {{ commit.message | split(pat="\n") | first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/commit/{{ commit.id }}))
{% endfor -%}
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group }}
{% for commit in commits -%}
- {{ commit.message | split(pat="\n") | first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/commit/{{ commit.id }}))
{% endfor -%}
{% endif -%}
"""
footer = ""
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/Dayclone/opencode-on-autopilot/issues/${2}))"},
]
commit_parsers = [
# Skip merge commits - they'll be handled separately as PR entries
{ message = "^Merge pull request", skip = true },
{ message = "^Merge branch", skip = true },
# Scoped commits (most specific)
{ message = "^\\w+\\(ci\\)", group = "🤖 Continuous Integration" },
{ message = "^\\w+\\(build\\)", group = "📦 Build System" },
{ message = "^\\w+\\(docs\\)", group = "📚 Documentation" },
{ message = "^\\w+\\(test\\)", group = "✅ Testing" },
{ message = "^\\w+\\(style\\)", group = "🎨 Styling" },
{ message = "^\\w+\\(perf\\)", group = "⚡ Performance Improvements" },
{ message = "^\\w+\\(refactor\\)", group = "♻️ Code Refactoring" },
{ message = "^\\w+\\(security\\)", group = "🔒 Security" },
# Conventional commits (less specific)
{ message = "^feat", group = "🚀 Features" },
{ message = "^feature", group = "🚀 Features" },
{ message = "^fix", group = "🐛 Bug Fixes" },
{ message = "^bug", group = "🐛 Bug Fixes" },
{ message = "^patch", group = "🐛 Bug Fixes" },
{ message = "^perf", group = "⚡ Performance Improvements" },
{ message = "^refactor", group = "♻️ Code Refactoring" },
{ message = "^revert", group = "⏪ Reverts" },
{ message = "^style", group = "🎨 Styling" },
{ message = "^test", group = "✅ Testing" },
{ message = "^tests", group = "✅ Testing" },
{ message = "^doc", group = "📚 Documentation" },
{ message = "^docs", group = "📚 Documentation" },
{ message = "^build", group = "📦 Build System" },
{ message = "^ci", group = "🤖 Continuous Integration" },
{ message = "^chore", group = "🧹 Miscellaneous Chores" },
# Other
{ body = ".*security", group = "🔒 Security" },
{ message = ".*", group = "🔧 Other Changes" },
]
protect_breaking_commits = true
filter_commits = false
tag_pattern = "build-*"
skip_tags = ""
ignore_tags = ""
topo_order = false
sort_commits = "newest"