-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathcliff.toml
More file actions
81 lines (77 loc) · 2.9 KB
/
Copy pathcliff.toml
File metadata and controls
81 lines (77 loc) · 2.9 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
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
#
# CHANGELOG.md is generated from the commit history. Regenerate with
# `rake changelog` (or `git cliff -o CHANGELOG.md`).
[changelog]
header = """
# Changelog\n
All notable changes to this project are documented in this file, generated from
the commit history with [git-cliff](https://git-cliff.org) — regenerate with
`rake changelog`.
The format follows [Keep a Changelog](https://keepachangelog.com). The gem
version tracks the neo4j-java-driver version it targets, with a RubyGems
pre-release token when applicable (e.g. `6.2.1.beta.1`).\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 | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
{% endfor %}
{% endfor %}\n
"""
footer = """
{% for release in releases -%}
{% if release.version -%}
{% if release.previous.version -%}
[{{ release.version | trim_start_matches(pat="v") }}]: \
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
/compare/{{ release.previous.version }}..{{ release.version }}
{% else -%}
[{{ release.version | trim_start_matches(pat="v") }}]: \
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
/tree/{{ release.version }}
{% endif -%}
{% else -%}
{% if release.previous.version -%}
[unreleased]: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
/compare/{{ release.previous.version }}..HEAD
{% else -%}
[unreleased]: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
/commits/main
{% endif -%}
{% endif -%}
{% endfor %}
<!-- generated by git-cliff -->
"""
trim = true
[remote.github]
owner = "neo4jrb"
repo = "neo4j-ruby-driver"
[git]
conventional_commits = true
# Drop non-conventional commits (merges, etc.).
filter_unconventional = true
# Turn `(#123)` in a subject into a link to the PR.
commit_preprocessors = [
{ pattern = '\(#(\d+)\)', replace = "([#${1}](https://github.com/neo4jrb/neo4j-ruby-driver/pull/${1}))" },
]
# Keep only the user-facing types — features, fixes, performance. Everything
# else (refactor, chore, build, ci, docs, test, style, revert, and any
# non-conventional commit) is skipped, so the changelog stays notable-only.
# First match wins.
commit_parsers = [
{ message = "^feat", group = "Added" },
{ message = "^fix", group = "Fixed" },
{ message = "^perf", group = "Performance" },
{ message = "^.*", skip = true },
]
filter_commits = false
topo_order = false
sort_commits = "oldest"