-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathcliff.toml
More file actions
77 lines (72 loc) · 2.6 KB
/
cliff.toml
File metadata and controls
77 lines (72 loc) · 2.6 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
[remote.github]
owner = "REditorSupport"
repo = "vscode-R"
[changelog]
header = """
# Changelog
"""
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 %}
{% set_global issues = [] %}\
{% if commit.remote.pr_number %}\
{% set_global issues = issues | concat(with=commit.remote.pr_number) %}\
{%- endif %}\
{% for link in commit.links %}\
{% set_global issues = issues | concat(with=link.text | split(pat="#") | last) %}\
{%- endfor -%}\
{% if commit.remote.pr_title -%}\
{%- set commit_message = commit.remote.pr_title -%}\
{%- else -%}\
{%- set commit_message = commit.message -%}\
{%- endif -%}\
* {{ commit_message | split(pat="\n") | first | trim }}\
{% set_global issues = issues | unique %}\
{% if issues | length > 0 %} (\
{% for issue in issues %}\
[#{{ issue }}](https://github.com/REditorSupport/vscode-R/issues/{{ issue }})\
{% if not loop.last %}, {% endif %}\
{%- endfor -%})\
{%- endif %}\
{%- endfor -%}\n
{% endfor %}\
{% if version %}
{% if previous.version %}
**Full Changelog**: <https://github.com/REditorSupport/vscode-R/compare/{{ previous.version }}...{{ version }}>
{% endif %}
{% else -%}
{% raw %}\n{% endraw %}
{% endif %}\
"""
trim = true
footer = """
See [CHANGELOG.old.md](https://github.com/REditorSupport/vscode-R/blob/master/CHANGELOG.old.md) for changes before v2.8.5.
<!-- generated by git-cliff -->
"""
postprocessors = []
[git]
conventional_commits = false
split_commits = false
commit_parsers = [
{ message = "(?i)^feat\\b", group = "Features" },
{ message = "(?i)^fix\\b", group = "Bug Fixes" },
{ message = "(?i)^docs\\b", group = "Documentation" },
{ message = "(?i)^perf\\b", group = "Performance" },
{ message = "(?i)^refactor\\b", group = "Refactor" },
{ message = "(?i)^style\\b", group = "Styling" },
{ message = "(?i)^test\\b", group = "Testing" },
{ message = "(?i)^(chore|bump to|Merge branch)\\b", skip = true },
{ body = ".*", group = "Other" },
]
link_parsers = [
{ pattern = "(?i)\\b(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #(\\d+)", href = "https://github.com/REditorSupport/vscode-R/issues/$1" },
]
filter_commits = true
topo_order = false
sort_commits = "oldest"