forked from MostroP2P/mostro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
133 lines (122 loc) · 5.24 KB
/
cliff.toml
File metadata and controls
133 lines (122 loc) · 5.24 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
125
126
127
128
129
130
131
132
133
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
[remote.github]
owner = "MostroP2P"
repo = "mostro"
[changelog]
# A Tera template to be rendered for each release in the changelog.
# See https://keats.github.io/tera/docs/#introduction
body = """
## Verifying the Release
Use the published SHA256 checksums to verify your download.
1. Download the release artifact and its checksum file (e.g. `SHA256SUMS` or `checksums.txt`) from the release page.
2. Re-compute the SHA256 of your downloaded file and compare it to the value listed for the same filename in the checksum file.
Linux / macOS:
```bash
# macOS (shasum) or Linux (sha256sum)
shasum -a 256 mostro-vX.Y.Z-<target>.tar.gz
# or
sha256sum mostro-vX.Y.Z-<target>.tar.gz
```
Windows (PowerShell):
```powershell
Get-FileHash .\mostro-vX.Y.Z-<target>.zip -Algorithm SHA256
```
Ensure the computed hash matches exactly the one provided in the checksum file for that artifact name.
## What's Changed{%- if version %} in {{ version }}{%- endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
{% if group != "" %}
### {{ group }}
{% endif %}
{% for commit in commits %}
{% 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 }}\
{% if commit.remote.username %} by [@{{ commit.remote.username }}](https://github.com/{{ commit.remote.username }}){%- endif -%}
{% if commit.remote.pr_number %} in \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
{%- endif %}
{%- endfor %}
{%- endfor -%}
{%- if github -%}
{% if github.contributors | length != 0 %}
{% raw %}\n{% endraw -%}
## Contributors
{%- endif %}\
{% for contributor in github.contributors %}
* [@{{ contributor.username }}](https://github.com/{{ contributor.username }}) made their contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
{%- endfor -%}
{%- endif -%}
{% if version %}
{% if previous.version %}
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
{% endif %}
{% else -%}
{% raw %}\n{% endraw %}
{% endif %}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
# Remove leading and trailing whitespaces from the changelog's body.
trim = true
# A Tera template to be rendered as the changelog's footer.
# See https://keats.github.io/tera/docs/#introduction
footer = """
<!-- generated by git-cliff -->
"""
# An array of regex based postprocessors to modify the changelog.
# Strip numeric HTML comment placeholders like '<!-- 123 -->' left by tooling.
postprocessors = [{ pattern = "<!-- \\d+ -->", replace = "" }]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat(\\(.+\\))?!?:", group = "🚀 Features" },
{ message = "^fix(\\(.+\\))?!?:", group = "🐛 Bug Fixes" },
{ message = "^merge(\\(.+\\))?!?:", group = "🔀 Merges" },
{ message = "^docs(\\(.+\\))?!?:", group = "📚 Documentation" },
{ message = "^perf(\\(.+\\))?!?:", group = "⚡ Performance" },
{ message = "^refactor(\\(.+\\))?!?:", group = "🚜 Refactor" },
{ message = "^style(\\(.+\\))?!?:", group = "🎨 Styling" },
{ message = "^test(\\(.+\\))?!?:", group = "🧪 Testing" },
{ message = "^ci(\\(.+\\))?!?:", group = "⚙️ CI/CD" },
{ message = "^build(\\(.+\\))?!?:", group = "🔨 Build" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore(\\(.+\\))?!?:", group = "⚙️ Miscellaneous Tasks" },
{ body = "(?i)security", group = "🛡️ Security" },
{ message = "^revert", group = "◀️ Revert" },
{ message = ".*", group = "💼 Other" },
]
[git]
# Parse commits according to the conventional commits specification.
# See https://www.conventionalcommits.org
conventional_commits = true
# Exclude commits that do not match the conventional commits specification.
filter_unconventional = false
# Split commits on newlines, treating each line as an individual commit.
split_commits = false
# An array of regex based parsers to modify commit messages prior to further processing.
commit_preprocessors = [
{ pattern = 'Merge pull request #([0-9]+)', replace = "merge: pull request #$1" },
]
# Exclude commits that are not matched by any commit parser.
filter_commits = false
# Order releases topologically instead of chronologically.
topo_order = false
# Order of commits in each group/release within the changelog.
# Allowed values: newest, oldest
sort_commits = "newest"
# Enable link parsing for PR references and user mentions
link_parsers = [
{ pattern = "Merge pull request #([0-9]+)", href = "https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/$1" },
{ pattern = "#([0-9]+)", href = "https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/issues/$1" },
{ pattern = "@([a-zA-Z0-9_-]+(?:\\[[^\\]]+\\])?)", href = "https://github.com/$1" },
]