-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcliff.toml
More file actions
66 lines (58 loc) · 2.37 KB
/
Copy pathcliff.toml
File metadata and controls
66 lines (58 loc) · 2.37 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
# git-cliff configuration for Gondwana
# Generates release notes from BOTH PR merge commits and direct commits to master.
# Docs: https://git-cliff.org/docs/
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
"""
body = """
{% if version %}\
# v{{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%B %d, %Y") }}
{% else %}\
# [Unreleased]
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
## {{ group | striptags | trim | upper_first }}
{% for commit in commits -%}
- {{ commit.message | split(pat="\n") | first | trim | upper_first }}
{% endfor %}
{% endfor %}
"""
trim = false
postprocessors = []
[git]
# Conventional commits get parsed cleanly, but direct/non-conventional commits are NOT filtered out.
conventional_commits = true
filter_unconventional = false
split_commits = false
protect_breaking_commits = true
filter_commits = false
sort_commits = "oldest"
tag_pattern = "v[0-9].*"
# Strip author/co-author trailer lines (added by GitHub Copilot and GitHub itself).
commit_preprocessors = [
{ pattern = "\\A([^\\r\\n]*?)\\s*\\(#\\d+\\)(\\r?\\n|$)", replace = "$1$2" },
{ pattern = "(?m)^Co-authored-by:.*\r?\n?", replace = "" },
{ pattern = "(?m)^Agent-Logs-Url:.*\r?\n?", replace = "" },
{ pattern = "(?m)^Signed-off-by:.*\r?\n?", replace = "" },
]
# Group conventional commits first. Anything else falls through to Other Changes.
commit_parsers = [
{ message = "(?i)changelog", skip = true },
{ message = "^docs: update changelog", skip = true },
{ message = "^Potential fix for pull request finding$", skip = true },
{ message = "^feat", group = "<!-- 0 -->Added" },
{ message = "^fix", group = "<!-- 1 -->Fixed" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^refactor", group = "<!-- 3 -->Refactoring" },
{ message = "^docs", group = "<!-- 4 -->Documentation" },
{ message = "^test", group = "<!-- 5 -->Tests" },
{ message = "^build", group = "<!-- 6 -->Build" },
{ message = "^ci", group = "<!-- 7 -->CI" },
{ message = "^chore", group = "<!-- 8 -->Maintenance" },
{ message = "^revert", group = "<!-- 9 -->Reverted" },
{ body = ".*security", group = "<!-- 10 -->Security" },
{ message = "^Merge (pull request|branch)", skip = true },
{ message = ".*", group = "<!-- 99 -->Other Changes" },
]