Repository navigation
chore: release - #611
Closed
cpp-linter-publisher[bot] wants to merge 2 commits into
Closed
chore: release#611cpp-linter-publisher[bot] wants to merge 2 commits into
cpp-linter-publisher[bot] wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #611 +/- ##
=======================================
Coverage 99.75% 99.75%
=======================================
Files 37 37
Lines 9779 9779
=======================================
Hits 9755 9755
Misses 24 24 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2bndy5
pushed a commit
that referenced
this pull request
Nov 26, 2026
…#612) ## Summary When a package changes only through its dependencies, release-plz adds its own changelog entry ("chore: update Cargo.lock dependencies" / "chore: update Cargo.toml dependencies") with the placeholder commit id `0000000`. Our template linked every entry without a PR number to its commit, so the current release PR (#611) shows a link to `commit/0000000`, which is a 404, in both CHANGELOG.md files and in the PR body (and would end up in the GitHub release notes). The template now leaves out the commit link for that placeholder id. Checked with `release-plz update` on main: the entries become `- Update Cargo.lock dependencies` and `- Update Cargo.toml dependencies`; nothing else changes. Once this is merged, release-plz updates #611 on its own. ## Related Issues Relates to #611 <!-- claude-projects-attribution: {"github_login":"shenxianpeng"} --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Changelog entries without a pull request no longer display a commit link when the commit ID is a placeholder. Other commits without a pull request continue to display a link using the shortened commit ID. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
cpp-linter-publisher
Bot
force-pushed
the
release-plz-2026-11-26T05-44-04Z
branch
from
November 26, 2026 07:25
9f47182 to
856c0e1
Compare
Collaborator
|
Hmm.
|
shenxianpeng
added a commit
that referenced
this pull request
Nov 26, 2026
#613) ## Summary Addresses the questions on #611, so that releases happen when we decide, like with the old bump-n-release dispatch. 1. **No release for Cargo.lock-only changes.** release-plz bumps a package that has a binary target when its locked dependencies changed since the last crates.io release. That is why #611 bumped clang-tools-manager to 0.4.1 (#604 updated `zip`), which then bumped cpp-linter (its dependency on clang-tools-manager changed) and, through the version group, cpp-linter-py/js. `release_commits = "^(feat|fix|perf)"` now requires at least one `feat`, `fix` or `perf` commit before a package is released. Dependency, docs and CI changes alone no longer release anything. 2. **Why only a Cargo.lock entry showed up.** release-plz only counts commits that touch files inside a package's directory. #604 only changed the root `Cargo.lock`, so release-plz wrote its generic "Update Cargo.lock dependencies" entry instead. There are no other changes in `cpp-linter/` since rc.28. With 1. this kind of release does not happen anymore. 3. **Moving to 2.0.0 on purpose.** The release PR is now only opened or updated when the Release-plz workflow is run by hand (`workflow_dispatch`); the `release` job still runs on every push to main and only acts when a release PR is merged (`release_always = false`). To go to 2.0.0, a PR titled `build: set version to 2.0.0` sets the version with `cargo set-version` (as in CONTRIBUTING), then the workflow is run. `release_commits` also matches that title, so a version set by hand is released even without another `feat`/`fix`/`perf` commit; the commit itself is left out of the changelog. Checked with `release-plz update`: the release PR keeps 2.0.0 for all three packages, and a hand-set clang-tools-manager 0.5.0 with no other commits is picked up too. One thing to know for 2.0.0, now noted in CONTRIBUTING: crates.io still has the old `2.0.0-rc1` … `2.0.0-rc15` versions, and in semver `rc9` sorts after `rc.28`. release-plz therefore takes `2.0.0-rc9` as the previous version and the generated 2.0.0 changelog lists everything since then (38 entries, no compare link). The 2.0.0 changelog in the release PR should be edited by hand before merging. Checked with `release-plz update` on current main plus this change: no package is released (no `feat`/`fix`/`perf` commit since the last releases). Once this is merged, #611 can be closed. ## Related Issues Relates to #611 <!-- claude-projects-attribution: {"github_login":"shenxianpeng"} --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Release Process** * Releases are now initiated manually rather than updated automatically on every push to the main branch. * Release preparation is limited to packages with feature, bug-fix, or performance commits since their last release. Dependency-only, documentation, and CI changes do not qualify; manually selected versions are retained. * Release guidance now clarifies when to rerun the workflow and how publishing and deployment steps differ. * **Documentation** * Added guidance on how existing release-candidate versions affect version selection and changelog entries. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 New release
clang-tools-manager: 0.4.0 -> 0.4.1cpp-linter: 2.0.0-rc.28 -> 2.0.0-rc.29cpp-linter-py: 2.0.0-rc.27 -> 2.0.0-rc.29cpp-linter-js: 2.0.0-rc.26 -> 2.0.0-rc.29Changelog
clang-tools-managercpp-linterThis PR was generated with release-plz.