Skip to content

fix: release-plz handling revert commits#512

Merged
seqre merged 1 commit intomasterfrom
release-plz-fiz
Mar 17, 2026
Merged

fix: release-plz handling revert commits#512
seqre merged 1 commit intomasterfrom
release-plz-fiz

Conversation

@seqre
Copy link
Member

@seqre seqre commented Mar 17, 2026

No description provided.

@seqre seqre requested a review from a team March 17, 2026 19:21
@seqre seqre self-assigned this Mar 17, 2026
Copilot AI review requested due to automatic review settings March 17, 2026 19:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release-plz changelog template and preprocessing rules to better handle revert commits and commits without associated PR metadata.

Changes:

  • Only group/render commits that have a remote.pr_number, and correctly iterate per-group commits.
  • Add a separate rendering pass for commits missing remote.pr_number so they still appear in the changelog.
  • Add a commit preprocessor to rewrite auto-generated “Revert …” commit subjects into a conventional-commit style prefix.
Comments suppressed due to low confidence (1)

release-plz.toml:1

  • Commit rendering logic is now duplicated across two paths (grouped commits vs. commits without remote.pr_number), and the new non-PR rendering path doesn’t handle commit.scope the same way. To keep formatting consistent and reduce drift, consider extracting a small macro (e.g., render_commit(commit)) and calling it from both loops.
[workspace]

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +49 to +53
{%- for commit in commits -%}
{%- if not commit.remote.pr_number %}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}{{ self::username(commit=commit) }}
{%- endif -%}
{%- endfor %}
{ pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit [${3}](https://github.com/cot-rs/cot/commit/${2})" }
{ pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit [${3}](https://github.com/cot-rs/cot/commit/${2})" },
# Fix automatic revert commit name
{ pattern = "^Revert", replace = "chore(revert):" }
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

🐰 Bencher Report

Branchrelease-plz-fiz
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6.58 ms
(+10.55%)Baseline: 5.95 ms
7.09 ms
(92.78%)
json_api/json_api📈 view plot
🚷 view threshold
1.09 ms
(+6.15%)Baseline: 1.03 ms
1.19 ms
(92.24%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1.02 ms
(+7.94%)Baseline: 0.95 ms
1.08 ms
(94.60%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
1.00 ms
(+10.32%)Baseline: 0.91 ms
1.04 ms
(96.31%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
20.26 ms
(+15.51%)Baseline: 17.54 ms
20.76 ms
(97.61%)
🐰 View full continuous benchmarking report in Bencher

@seqre seqre enabled auto-merge (squash) March 17, 2026 19:29
@seqre seqre force-pushed the release-plz-fiz branch from 38f6bef to 5636621 Compare March 17, 2026 19:34
@seqre seqre merged commit e2ea8a9 into master Mar 17, 2026
39 of 40 checks passed
@seqre seqre deleted the release-plz-fiz branch March 17, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants