Repository navigation
Expand file tree
/
Copy pathcliff.toml
More file actions
124 lines (99 loc) · 3.77 KB
/
Copy pathcliff.toml
File metadata and controls
124 lines (99 loc) · 3.77 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# git-cliff configuration for dataprof
# https://git-cliff.org/docs/configuration
[changelog]
header = """
# Changelog
All notable changes to dataprof are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
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 | upper_first }}
{% for commit in commits %}
{% if commit.scope %}\
- **{{ commit.scope | upper_first }}**: {{ commit.message | upper_first }}{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}
{% else %}\
- {{ commit.message | upper_first }}{% if commit.remote.username %} by @{{ commit.remote.username }}{% endif %}
{% endif %}\
{% endfor %}
{% endfor %}
"""
footer = ""
trim = true
postprocessors = [
{ pattern = '\n{3,}', replace = "\n\n" },
]
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
# `filter_unconventional = true` silently drops commits whose subject is not
# conventional. Two 0.9.0 squash merges landed on master with plain subjects and
# would otherwise vanish from the generated notes, even though they carry the
# release's largest API changes. Rewriting pushed history is not an option, so
# normalize the subjects at changelog-render time instead.
commit_preprocessors = [
{ pattern = '^Implement Python 0\.9 quality metrics breaking pass', replace = "feat(python)!: nested DataQualityMetrics semantics and Python 3.10 floor" },
{ pattern = '^Add minimal analyze_structure API', replace = "feat(python): analyze_structure() for lightweight structural profiling" },
# A 0.12 squash merge (#646) landed with a plain subject.
{ pattern = '^Fix MySQL TIME columns decoding as duration instead of time of day', replace = "fix(database): decode MySQL TIME columns as a time of day, not a duration" },
]
commit_parsers = [
# Skip merge commits
{ message = "^Merge pull request", skip = true },
{ message = "^Merge branch", skip = true },
# Features
{ message = "^feat", group = "Added" },
# Bug fixes
{ message = "^fix", group = "Fixed" },
# Refactoring and changes
{ message = "^refactor", group = "Changed" },
{ message = "^perf", group = "Changed" },
{ message = "^style", group = "Changed" },
{ message = "^test", group = "Changed" },
{ message = "^build", group = "Changed" },
{ message = "^ci", group = "Changed" },
# Documentation
{ message = "^docs", group = "Documentation" },
# Dependencies - Dependabot patterns
{ message = "^deps\\(deps\\)", group = "Dependencies" },
{ message = "^chore\\(deps\\)", group = "Dependencies" },
# Hand-written dependency bumps use a bare `deps:` subject. Without this
# catch-all they match no parser and `filter_unconventional` drops them.
{ message = "^deps", group = "Dependencies" },
# Generic chore (excluding deps already captured)
{ message = "^chore", group = "Changed" },
# Security
{ message = "^security", group = "Security" },
# Removed
{ message = "^remove", group = "Removed" },
# Revert
{ message = "^revert", group = "Reverted" },
# Deprecated
{ message = "^deprecated", group = "Deprecated" },
]
protect_breaking_commits = false
# Order of groups in changelog
group_order = [
"Added",
"Changed",
"Deprecated",
"Removed",
"Fixed",
"Security",
"Documentation",
"Dependencies",
]
filter_commits = true
tag_pattern = "v[0-9].*"
topo_order = false
sort_commits = "newest"
[remote.github]
owner = "AndreaBozzo"
repo = "dataprof"