Skip to content

Commit 37c38ee

Browse files
authored
chore: release v0.6.1
1 parent cbc2eb6 commit 37c38ee

10 files changed

Lines changed: 108 additions & 79 deletions

File tree

.cargo/release-plz.toml

Lines changed: 2 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[workspace]
2+
semver_check = false
23
git_release_enable = false
34
changelog_update = false
45
git_release_draft = true
56
git_release_body = """
6-
{{ changelog }}
7+
TODO: add changelog
78
{% if remote.contributors %}
89
### Contributors
910
{% for contributor in remote.contributors %}
@@ -12,76 +13,12 @@ git_release_body = """
1213
{% endif %}
1314
"""
1415

15-
[changelog]
16-
header = """# Changelog
17-
18-
All notable changes to this project will be documented in this file.
19-
20-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), \
21-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
22-
23-
## [Unreleased]
24-
"""
25-
26-
body = """
27-
28-
## [{{ version }}]\
29-
{%- if release_link -%}\
30-
({{ release_link }})\
31-
{% endif %} \
32-
- {{ timestamp | date(format="%Y-%m-%d") }}
33-
34-
{% if previous.version -%}\
35-
[View diff on diff.rs](https://diff.rs/{{ package }}/{{ previous.version }}/{{ package }}/{{ version }}/Cargo.toml)
36-
{%- endif %}
37-
{% for group, group_commits in commits | filter(attribute="remote.pr_number") | sort(attribute="remote.pr_number") | reverse | group_by(attribute="group") %}
38-
### {{ group | striptags | trim | upper_first }}
39-
40-
{% for commit in group_commits | sort(attribute="breaking") | reverse %}
41-
{%- if commit.scope -%}
42-
- {% if commit.breaking %}[**breaking**] {% endif %}*({{commit.scope}})* \
43-
{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
44-
{% else -%}
45-
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
46-
{% endif -%}
47-
{% endfor -%}
48-
{% endfor %}
49-
{%- for commit in commits -%}
50-
{%- if not commit.remote.pr_number %}
51-
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
52-
{%- endif -%}
53-
{%- endfor %}
54-
{%- macro username(commit) -%}
55-
{% if commit.remote.username %} (by [@{{ commit.remote.username }}](https://github.com/{{ commit.remote.username }})){% endif -%}
56-
{% endmacro -%}
57-
"""
58-
59-
protect_breaking_commits = true
60-
commit_parsers = [
61-
{ message = "^.*\\(security\\)", group = "<!-- 0 -->Security", scope = "" },
62-
{ message = "^feat", group = "<!-- 1 -->New features" },
63-
{ message = "^fix", group = "<!-- 2 -->Fixes" },
64-
{ message = "^.*", group = "<!-- 3 -->Other" },
65-
]
66-
commit_preprocessors = [
67-
# Replace multiple spaces with a single space.
68-
{ pattern = " +", replace = " " },
69-
# Replace the issue/PR number with the link. It will work for PRs as well as GitHub has a redirect.
70-
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/cot-rs/cot/pull/${1}))" },
71-
# Hyperlink bare commit hashes like "abcd1234" in commit logs, with short commit hash as description.
72-
{ pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit [${3}](https://github.com/cot-rs/cot/commit/${2})" },
73-
# Fix automatic revert commit name
74-
{ pattern = "^Revert", replace = "chore(revert):" }
75-
]
76-
7716
[[package]]
7817
name = "cot"
79-
changelog_update = true
8018
changelog_include = ["cot-codegen", "cot-macros", "cot-core"]
8119
changelog_path = "./CHANGELOG.md"
8220
git_release_enable = true
8321

8422
[[package]]
8523
name = "cot-cli"
86-
changelog_update = true
8724
git_release_enable = true

.config/cliff.toml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[workspace]
2+
semver_check = false
3+
git_release_enable = false
4+
changelog_update = false
5+
git_release_draft = true
6+
git_release_body = """
7+
{{ changelog }}
8+
{% if remote.contributors %}
9+
### Contributors
10+
{% for contributor in remote.contributors %}
11+
* @{{ contributor.username }}
12+
{% endfor %}
13+
{% endif %}
14+
"""
15+
16+
[changelog]
17+
header = """# Changelog
18+
19+
All notable changes to this project will be documented in this file.
20+
21+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), \
22+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
23+
24+
## [Unreleased]
25+
"""
26+
27+
body = """
28+
29+
## [{{ version }}]\
30+
{%- if release_link -%}\
31+
({{ release_link }})\
32+
{% endif %} \
33+
- {{ now() | date(format="%Y-%m-%d") }}
34+
35+
{% if previous.version -%}\
36+
[View diff on diff.rs](https://diff.rs/{{ package }}/{{ previous.version }}/{{ package }}/{{ version }}/Cargo.toml)
37+
{%- endif %}
38+
{% for group, group_commits in commits | filter(attribute="remote.pr_number") | sort(attribute="remote.pr_number") | reverse | group_by(attribute="group") %}
39+
### {{ group | striptags | trim | upper_first }}
40+
41+
{% for commit in group_commits | sort(attribute="breaking") | reverse %}
42+
{%- if commit.scope -%}
43+
- {% if commit.breaking %}[**breaking**] {% endif %}*({{commit.scope}})* \
44+
{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
45+
{% else -%}
46+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
47+
{% endif -%}
48+
{% endfor -%}
49+
{% endfor %}
50+
{%- for commit in commits -%}
51+
{%- if not commit.remote.pr_number %}
52+
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
53+
{%- endif -%}
54+
{%- endfor %}
55+
{%- macro username(commit) -%}
56+
{% if commit.remote.username %} (by [@{{ commit.remote.username }}](https://github.com/{{ commit.remote.username }})){% endif -%}
57+
{% endmacro -%}
58+
"""
59+
60+
protect_breaking_commits = true
61+
commit_parsers = [
62+
{ message = "^.*\\(security\\)", group = "<!-- 0 -->Security", scope = "" },
63+
{ message = "^feat", group = "<!-- 1 -->New features" },
64+
{ message = "^fix", group = "<!-- 2 -->Fixes" },
65+
{ message = "^.*", group = "<!-- 3 -->Other" },
66+
]
67+
commit_preprocessors = [
68+
# Replace multiple spaces with a single space.
69+
{ pattern = " +", replace = " " },
70+
# Replace the issue/PR number with the link. It will work for PRs as well as GitHub has a redirect.
71+
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/cot-rs/cot/pull/${1}))" },
72+
# Hyperlink bare commit hashes like "abcd1234" in commit logs, with short commit hash as description.
73+
{ pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit [${3}](https://github.com/cot-rs/cot/commit/${2})" },
74+
# Fix automatic revert commit name
75+
{ pattern = "^Revert", replace = "chore(revert):" }
76+
]
77+
78+
# git-cliff specific
79+
[git]
80+
filter_unconventional = false
81+
82+
[[package]]
83+
name = "cot"
84+
changelog_update = true
85+
changelog_include = ["cot-codegen", "cot-macros", "cot-core"]
86+
changelog_path = "./CHANGELOG.md"
87+
git_release_enable = true
88+
89+
[[package]]
90+
name = "cot-cli"
91+
changelog_update = true
92+
git_release_enable = true

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ clap = { version = "4.6.1", features = ["deprecated"] }
8181
clap-verbosity-flag = { version = "3", default-features = false }
8282
clap_complete = "4"
8383
clap_mangen = "0.3.0"
84-
cot = { version = "0.6.0", path = "cot" }
85-
cot_core = { version = "0.6.0", path = "cot-core" }
86-
cot_codegen = { version = "0.6.0", path = "cot-codegen" }
87-
cot_macros = { version = "0.6.0", path = "cot-macros" }
84+
cot = { version = "0.6.1", path = "cot" }
85+
cot_core = { version = "0.6.1", path = "cot-core" }
86+
cot_codegen = { version = "0.6.1", path = "cot-codegen" }
87+
cot_macros = { version = "0.6.1", path = "cot-macros" }
8888
criterion = "0.8"
8989
darling = "0.23"
9090
deadpool-redis = { version = "0.23", default-features = false }

cot-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot-cli"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "Command-line interface for the Cot web framework"
55
categories = ["command-line-utilities", "web-programming"]
66
edition.workspace = true

cot-codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot_codegen"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "The Rust web framework for lazy developers - code generation utils."
55
edition.workspace = true
66
rust-version.workspace = true

cot-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot_core"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "The Rust web framework for lazy developers - framework core."
55
categories = ["web-programming", "web-programming::http-server", "network-programming"]
66
edition.workspace = true

cot-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot_macros"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "The Rust web framework for lazy developers - macros."
55
edition.workspace = true
66
rust-version.workspace = true

cot/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "The Rust web framework for lazy developers."
55
categories = ["web-programming", "web-programming::http-server", "network-programming"]
66
edition.workspace = true

release-plz.toml

Whitespace-only changes.

0 commit comments

Comments
 (0)