You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore: skip commit link for changelog entries release-plz adds itself - #612
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.
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.
No actionable comments were generated in the recent review.
Walkthrough
The changelog template omits a commit link when a commit has no pull-request number and its ID is 0000000. Other commits without a pull-request number retain their truncated commit links.
Changes: Changelog commit links
Layer / File(s)
Summary
Fallback commit link condition release-plz.toml
The template now emits a fallback commit link only when the commit ID is not 0000000.
cpp-linter/cpp-linter-rs#610: Introduces the release-plz workflow and configuration that this changelog template updates.
Merge Risk: Minimal · up to 272ee
This change stops broken commit links for dependency-only changelog entries produced by release-plz. Other entries are unaffected. The risk is minimal, and the change is easy to revert.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "chore: skip commit link for changelog entries release-plz adds itself" matches the main change. The release-plz.toml changelog template now omits commit links for the placeholder commit ID …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title "chore: skip commit link for changelog entries release-plz adds itself" matches the main change. The release-plz.toml changelog template now omits commit links for the placeholder commit ID 0000000, which release-plz uses for dependency-only entries. The title names that behavior and the affected entries. It uses the conventional "chore:" prefix, which fits a template-only change.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 076be1d and 272ee13.
Files selected for processing: 1
release-plz.toml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
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 tocommit/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 updateon main: the entries become- Update Cargo.lock dependenciesand- Update Cargo.toml dependencies; nothing else changes. Once this is merged, release-plz updates #611 on its own.Related Issues
Relates to #611
Summary by CodeRabbit