Skip to content

chore: skip commit link for changelog entries release-plz adds itself - #612

Merged
2bndy5 merged 1 commit into
mainfrom
claude/project-thread-u751ea
Nov 26, 2026
Merged

2bndy5 merged 1 commit into
mainfrom
claude/project-thread-u751ea

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

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.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ef04be06-1896-482d-96ee-7803261ecc4e
Commits

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.

@2bndy5
2bndy5 merged commit 0f7d31c into main Nov 26, 2026
28 checks passed
@2bndy5
2bndy5 deleted the claude/project-thread-u751ea branch November 26, 2026 07:24
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.

2 participants