Skip to content

Commit 3aaaa25

Browse files
committed
Update release-plz config & CHANGELOG
1 parent 1d50da3 commit 3aaaa25

File tree

3 files changed

+224
-105
lines changed

3 files changed

+224
-105
lines changed

CHANGELOG.md

Lines changed: 145 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,170 @@
1-
## [unreleased]
1+
# Changelog
22

3-
### ⚙️ Miscellaneous Tasks
3+
All notable changes to this project will be documented in this file.
44

5-
- Add a rust-toolchain.toml
6-
## [test-context-v0.5.0] - 2025-10-29
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
### ⚙️ Miscellaneous Tasks
8+
## [Unreleased]
99

10-
- Update dependabot & add release-plz workflow
11-
## [0.5.0] - 2025-10-29
12-
13-
### 🐛 Bug Fixes
10+
### Added
11+
- Add a CHANGELOG by @JasterV
12+
- Add a rust-toolchain.toml by @JasterV
1413

15-
- Manual drop on tests
14+
## [0.5.0] - 2025-10-29
1615

17-
### 📚 Documentation
16+
### Added
17+
- Added the ability to work with rstest by @killpop3770 in [#51](https://github.com/JasterV/test-context/pull/51)
1818

19-
- Explain why #[test_context] must come before #[tokio::test]; clarify attribute expansion order (#49)
20-
## [0.4.0] - 2025-01-27
19+
### Changed
20+
- Explain why #[test_context] must come before #[tokio::test]; clarify attribute expansion order by @vilinski in [#49](https://github.com/JasterV/test-context/pull/49)
21+
- Update README.md by @JasterV in [#47](https://github.com/JasterV/test-context/pull/47)
22+
- Update dependabot & add release-plz workflow by @JasterV
2123

22-
### 🚀 Features
24+
### Fixed
25+
- Manual drop on tests by @JasterV
2326

24-
- Support generic types in test_context macro (#44)
27+
### New Contributors
28+
* @killpop3770 made their first contribution in [#51](https://github.com/JasterV/test-context/pull/51)
29+
* @vilinski made their first contribution in [#49](https://github.com/JasterV/test-context/pull/49)
2530

26-
### 🚜 Refactor
31+
## [0.4.0] - 2025-01-27
2732

28-
- Support generic types in test_context macro (#45)
33+
### Changed
34+
- Upgrade to 0.4.0 by @JasterV in [#46](https://github.com/JasterV/test-context/pull/46)
35+
- Support generic types in test_context macro by @JasterV in [#45](https://github.com/JasterV/test-context/pull/45)
36+
- Support generic types in test_context macro by @rookiecj in [#44](https://github.com/JasterV/test-context/pull/44)
2937

30-
### ⚙️ Miscellaneous Tasks
38+
### New Contributors
39+
* @rookiecj made their first contribution in [#44](https://github.com/JasterV/test-context/pull/44)
3140

32-
- Upgrade to 0.4.0 (#46)
3341
## [0.3.0] - 2024-02-27
3442

35-
### 🚀 Features
36-
37-
- Add support for the skip_teardown keyword (#40)
38-
39-
### 🚜 Refactor
43+
### Added
44+
- Add support for the skip_teardown keyword by @JasterV in [#40](https://github.com/JasterV/test-context/pull/40)
4045

41-
- Clean up the macro implementation
46+
### Changed
47+
- Upgrade to 0.3.0 by @JasterV in [#41](https://github.com/JasterV/test-context/pull/41)
48+
- Merge pull request #39 from JasterV/refactor/test-context-macro by @JasterV in [#39](https://github.com/JasterV/test-context/pull/39)
49+
- Clean up the macro implementation by @JasterV
4250

43-
### ⚙️ Miscellaneous Tasks
44-
45-
- Upgrade to 0.3.0 (#41)
4651
## [0.2.0] - 2024-02-26
4752

48-
### 🚜 Refactor
49-
50-
- Remove support for async-trait crate
53+
### Changed
54+
- Merge pull request #38 from JasterV/chore/upgrade-to-0.2.0-version by @JasterV in [#38](https://github.com/JasterV/test-context/pull/38)
55+
- Upgrade to 0.2.0 version by @JasterV
56+
- Merge pull request #37 from JasterV/refactor/remove-async-trait-support by @JasterV in [#37](https://github.com/JasterV/test-context/pull/37)
5157

52-
### ⚙️ Miscellaneous Tasks
58+
### Removed
59+
- Remove support for async-trait crate by @JasterV
5360

54-
- Upgrade to 0.2.0 version
5561
## [0.1.6] - 2024-02-26
5662

57-
### 🐛 Bug Fixes
58-
59-
- Clippy unit test on doctests warnings
60-
61-
### 🚜 Refactor
63+
### Changed
64+
- Merge pull request #36 from JasterV/chore/update-to-0-1-6 by @JasterV in [#36](https://github.com/JasterV/test-context/pull/36)
65+
- Update to 0.1.6 by @JasterV
66+
- Merge pull request #35 from JasterV/chore/update-patch-version by @JasterV in [#35](https://github.com/JasterV/test-context/pull/35)
67+
- Update patch version by @JasterV
68+
- Merge pull request #34 from JasterV/refactor/cargo-workspace by @JasterV in [#34](https://github.com/JasterV/test-context/pull/34)
69+
- Update workspace properties by @JasterV
70+
- Restructure the workspace members organization by @JasterV
71+
- Merge pull request #33 from JasterV/chore/update-package-information by @JasterV in [#33](https://github.com/JasterV/test-context/pull/33)
72+
- Update crate information by @JasterV
73+
- Merge pull request #31 from JasterV/fix/doc-tests-clippy-error by @JasterV in [#31](https://github.com/JasterV/test-context/pull/31)
74+
- Merge pull request #29 from JasterV/dependabot/cargo/syn-tw-2 by @JasterV in [#29](https://github.com/JasterV/test-context/pull/29)
75+
- Merge branch 'main' into dependabot/cargo/syn-tw-2 by @JasterV
76+
- Merge pull request #23 from yotamofek/syn2 by @JasterV in [#23](https://github.com/JasterV/test-context/pull/23)
77+
- Merge branch 'main' into syn2 by @JasterV
78+
- Merge branch 'main' into syn2 by @JasterV
79+
- Update syn by @yotamofek
80+
- Update syn requirement from ^1 to ^2 by @dependabot[bot]
81+
- Merge pull request #30 from JasterV/chore/update-to-2021-edition by @JasterV in [#30](https://github.com/JasterV/test-context/pull/30)
82+
- Update to 2021 rust edition by @JasterV
83+
- Merge pull request #28 from JasterV/JasterV-patch-1 by @JasterV in [#28](https://github.com/JasterV/test-context/pull/28)
84+
- Create dependabot.yml by @JasterV
85+
- Merge pull request #27 from JasterV/JasterV-patch-1 by @JasterV in [#27](https://github.com/JasterV/test-context/pull/27)
86+
- Update README.md by @JasterV
87+
- Update README.md by @markhildreth
88+
- Merge pull request #19 from SomeoneToIgnore/patch-1 by @markhildreth in [#19](https://github.com/JasterV/test-context/pull/19)
89+
- Use proper World capitalization in the main example by @SomeoneToIgnore
90+
91+
### Fixed
92+
- Clippy unit test on doctests warnings by @JasterV
93+
94+
### New Contributors
95+
* @JasterV made their first contribution in [#36](https://github.com/JasterV/test-context/pull/36)
96+
* @dependabot[bot] made their first contribution
97+
* @yotamofek made their first contribution
98+
* @SomeoneToIgnore made their first contribution
99+
100+
## [0.1.4] - 2022-07-19
101+
102+
### Changed
103+
- Merge pull request #17 from markhildreth/bump-to-0.1.4 by @markhildreth in [#17](https://github.com/JasterV/test-context/pull/17)
104+
- Bumped to 0.1.4 by @markhildreth
105+
- Merge pull request #16 from markhildreth/use-original-argument-list by @markhildreth in [#16](https://github.com/JasterV/test-context/pull/16)
106+
- Copy original argument list directly from input token stream. by @markhildreth
107+
108+
## [0.1.3] - 2021-02-27
109+
110+
### Added
111+
- Add basic impl TestContext for AsyncTestContext by @Shadow53
112+
113+
### Changed
114+
- Merge pull request #11 from markhildreth/bump-to-0.1.3 by @markhildreth in [#11](https://github.com/JasterV/test-context/pull/11)
115+
- Bumped to v0.1.3 by @markhildreth
116+
- Merge pull request #10 from markhildreth/add-sync-async-impl-docs by @markhildreth in [#10](https://github.com/JasterV/test-context/pull/10)
117+
- Documented behavior of AsyncContext with normal function. by @markhildreth
118+
- Merge pull request #9 from Shadow53/impl-sync-for-async by @markhildreth in [#9](https://github.com/JasterV/test-context/pull/9)
119+
- Run cargo fmt by @Shadow53
120+
121+
### New Contributors
122+
* @Shadow53 made their first contribution
123+
124+
## [0.1.2] - 2021-02-07
125+
126+
### Added
127+
- Added badges by @markhildreth
128+
129+
### Changed
130+
- Merge pull request #7 from markhildreth/bump-to-0.1.2 by @markhildreth in [#7](https://github.com/JasterV/test-context/pull/7)
131+
- Bumped to version v0.1.2 by @markhildreth
132+
- Merge pull request #6 from markhildreth/badges by @markhildreth in [#6](https://github.com/JasterV/test-context/pull/6)
133+
- Merge pull request #5 from markhildreth/fixed-typo by @markhildreth in [#5](https://github.com/JasterV/test-context/pull/5)
134+
- Merge branch 'main' into fixed-typo by @markhildreth
135+
- Merge pull request #4 from markhildreth/future-dependency by @markhildreth in [#4](https://github.com/JasterV/test-context/pull/4)
136+
- Forced futures to be imported through test_context crate. by @markhildreth
137+
- Fixed typo in documentation by @markhildreth
138+
139+
## [0.1.1] - 2021-01-18
140+
141+
### Changed
142+
- Merge pull request #3 from markhildreth/v0.1.1 by @markhildreth in [#3](https://github.com/JasterV/test-context/pull/3)
143+
- Bumped to version v0.1.1 by @markhildreth
144+
- Merge pull request #2 from markhildreth/github-workflows by @markhildreth in [#2](https://github.com/JasterV/test-context/pull/2)
145+
- Updated github ci.yml by @markhildreth
146+
- Merge pull request #1 from markhildreth/allow-returns by @markhildreth in [#1](https://github.com/JasterV/test-context/pull/1)
147+
- Allow return of wrapped functions value. by @markhildreth
62148

63-
- Restructure the workspace members organization
64-
65-
### ⚙️ Miscellaneous Tasks
66-
67-
- Update to 2021 rust edition
68-
- Update crate information
69-
- Update workspace properties
70-
- Update patch version
71-
- Update to 0.1.6
72149
## [0.1] - 2021-01-18
150+
151+
### Changed
152+
- Initial version by @markhildreth
153+
- Initial commit by @markhildreth
154+
155+
### New Contributors
156+
* @markhildreth made their first contribution
157+
158+
[unreleased]: https://github.com/JasterV/test-context/compare/test-context-v0.5.0...HEAD
159+
[test-context-v0.5.0]: https://github.com/JasterV/test-context/compare/v0.5.0...test-context-v0.5.0
160+
[0.5.0]: https://github.com/JasterV/test-context/compare/v0.4.0...v0.5.0
161+
[0.4.0]: https://github.com/JasterV/test-context/compare/v0.3.0...v0.4.0
162+
[0.3.0]: https://github.com/JasterV/test-context/compare/v0.2.0...v0.3.0
163+
[0.2.0]: https://github.com/JasterV/test-context/compare/v0.1.6...v0.2.0
164+
[0.1.6]: https://github.com/JasterV/test-context/compare/v0.1.4...v0.1.6
165+
[0.1.4]: https://github.com/JasterV/test-context/compare/v0.1.3...v0.1.4
166+
[0.1.3]: https://github.com/JasterV/test-context/compare/v0.1.2...v0.1.3
167+
[0.1.2]: https://github.com/JasterV/test-context/compare/v0.1.1...v0.1.2
168+
[0.1.1]: https://github.com/JasterV/test-context/compare/v0.1...v0.1.1
169+
170+
<!-- generated by git-cliff -->

cliff.toml

Lines changed: 73 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,107 @@
11
# git-cliff ~ configuration file
22
# https://git-cliff.org/docs/configuration
33

4-
54
[changelog]
5+
# A Tera template to be rendered as the changelog's header.
6+
# See https://keats.github.io/tera/docs/#introduction
7+
header = """
8+
# Changelog\n
9+
All notable changes to this project will be documented in this file.
10+
11+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
12+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n
13+
"""
614
# A Tera template to be rendered for each release in the changelog.
715
# See https://keats.github.io/tera/docs/#introduction
816
body = """
9-
{% if version %}\
17+
{%- macro remote_url() -%}
18+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
19+
{%- endmacro -%}
20+
21+
{% if version -%}
1022
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
11-
{% else %}\
12-
## [unreleased]
13-
{% endif %}\
23+
{% else -%}
24+
## [Unreleased]
25+
{% endif -%}
26+
1427
{% for group, commits in commits | group_by(attribute="group") %}
15-
### {{ group | striptags | trim | upper_first }}
16-
{% for commit in commits %}
17-
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
18-
{% if commit.breaking %}[**breaking**] {% endif %}\
19-
{{ commit.message | upper_first }}\
28+
### {{ group | upper_first }}
29+
{%- for commit in commits %}
30+
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
31+
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
32+
{% if commit.remote.pr_number %} in \
33+
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
34+
{%- endif -%}
2035
{% endfor %}
2136
{% endfor %}
37+
38+
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
39+
### New Contributors
40+
{%- endif -%}
41+
42+
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
43+
* @{{ contributor.username }} made their first contribution
44+
{%- if contributor.pr_number %} in \
45+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
46+
{%- endif %}
47+
{%- endfor %}\n
48+
49+
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}{% raw %}\n{% endraw -%}{% endif %}
50+
51+
"""
52+
# A Tera template to be rendered as the changelog's footer.
53+
# See https://keats.github.io/tera/docs/#introduction
54+
footer = """
55+
{%- macro remote_url() -%}
56+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
57+
{%- endmacro -%}
58+
59+
{% for release in releases -%}
60+
{% if release.version -%}
61+
{% if release.previous.version -%}
62+
[{{ release.version | trim_start_matches(pat="v") }}]: \
63+
{{ self::remote_url() }}/compare/{{ release.previous.version }}...{{ release.version }}
64+
{% endif -%}
65+
{% else -%}
66+
[unreleased]: {{ self::remote_url() }}/compare/{{ release.previous.version }}...HEAD
67+
{% endif -%}
68+
{% endfor %}
69+
<!-- generated by git-cliff -->
2270
"""
2371
# Remove leading and trailing whitespaces from the changelog's body.
2472
trim = true
25-
# Render body even when there are no releases to process.
26-
render_always = true
27-
# An array of regex based postprocessors to modify the changelog.
28-
postprocessors = [
29-
# Replace the placeholder <REPO> with a URL.
30-
#{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" },
31-
]
32-
# render body even when there are no releases to process
33-
# render_always = true
34-
# output file path
35-
# output = "test.md"
3673

3774
[git]
3875
# Parse commits according to the conventional commits specification.
3976
# See https://www.conventionalcommits.org
4077
conventional_commits = true
4178
# Exclude commits that do not match the conventional commits specification.
42-
filter_unconventional = true
43-
# Require all commits to be conventional.
44-
# Takes precedence over filter_unconventional.
45-
require_conventional = false
46-
# Split commits on newlines, treating each line as an individual commit.
47-
split_commits = false
79+
filter_unconventional = false
4880
# An array of regex based parsers to modify commit messages prior to further processing.
4981
commit_preprocessors = [
50-
# Replace issue numbers with link templates to be updated in `changelog.postprocessors`.
51-
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
52-
# Check spelling of the commit message using https://github.com/crate-ci/typos.
53-
# If the spelling is incorrect, it will be fixed automatically.
54-
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
82+
# Remove issue numbers.
83+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
5584
]
56-
# Prevent commits that are breaking from being excluded by commit parsers.
57-
protect_breaking_commits = false
5885
# An array of regex based parsers for extracting data from the commit message.
5986
# Assigns commits to groups.
6087
# Optionally sets the commit's scope and can decide to exclude commits from further processing.
6188
commit_parsers = [
62-
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
63-
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
64-
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
65-
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
66-
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
67-
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
68-
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
69-
{ message = "^chore\\(release\\): prepare for", skip = true },
70-
{ message = "^chore\\(deps.*\\)", skip = true },
71-
{ message = "^chore\\(pr\\)", skip = true },
72-
{ message = "^chore\\(pull\\)", skip = true },
73-
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
74-
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
75-
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
76-
{ message = ".*", group = "<!-- 10 -->💼 Other" },
89+
{ message = "^[a|A]dd", group = "Added" },
90+
{ message = "^[s|S]upport", group = "Added" },
91+
{ message = "^[r|R]emove", group = "Removed" },
92+
{ message = "^.*: add", group = "Added" },
93+
{ message = "^.*: support", group = "Added" },
94+
{ message = "^.*: remove", group = "Removed" },
95+
{ message = "^.*: delete", group = "Removed" },
96+
{ message = "^test", group = "Fixed" },
97+
{ message = "^fix", group = "Fixed" },
98+
{ message = "^.*: fix", group = "Fixed" },
99+
{ message = "^.*", group = "Changed" },
77100
]
78101
# Exclude commits that are not matched by any commit parser.
79102
filter_commits = false
80-
# An array of link parsers for extracting external references, and turning them into URLs, using regex.
81-
link_parsers = []
82-
# Include only the tags that belong to the current branch.
83-
use_branch_tags = false
84103
# Order releases topologically instead of chronologically.
85104
topo_order = false
86-
# Order releases topologically instead of chronologically.
87-
topo_order_commits = true
88105
# Order of commits in each group/release within the changelog.
89106
# Allowed values: newest, oldest
90-
sort_commits = "oldest"
91-
# Process submodules commits
92-
recurse_submodules = false
107+
sort_commits = "newest"

release-plz.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[workspace]
2+
pr_branch_prefix = "release-"
3+
pr_labels = ["release"]
4+
git_tag_enable = true
5+
git_tag_name = "v{{ version }}"
6+
pr_draft = true

0 commit comments

Comments
 (0)