Skip to content

fix(ci): add git_only option to release-plz config for unpublished packages - #9

Merged
km-tr merged 1 commit into
mainfrom
fix/release-plz-modify
Feb 24, 2026
Merged

km-tr merged 1 commit into
mainfrom
fix/release-plz-modify

Conversation

@km-tr

@km-tr km-tr commented Feb 24, 2026

Copy link
Copy Markdown
Owner

Summary

When publish=false but git_only is not set, release-plz attempts to check the crates.io registry and fails to detect unreleased changes. This causes the release-pr command to output "the repository is already up-to-date" and skip PR creation.

Setting git_only=true enables git tag-based version detection for packages distributed as binaries via cargo-dist, rather than relying on the cargo registry.

Test plan

  • Push changes to main or re-run release-plz workflows
  • Verify that release-plz release-pr now detects changes and creates a release PR with version bump
  • Verify that subsequent release-plz release creates tags as expected
  • Confirm cargo-dist workflow is triggered by the new tags

🤖 Generated with Claude Code

…ckages

When publish=false but git_only is not set, release-plz attempts to check crates.io registry
and fails to detect unreleased changes. Setting git_only=true enables git tag-based version
detection for packages distributed as binaries via cargo-dist.

🤖 Generated with AI
Copilot AI review requested due to automatic review settings February 24, 2026 13:57
@coderabbitai

coderabbitai Bot commented Feb 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • release-plz.toml is excluded by !**/*.toml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/release-plz-modify

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@km-tr
km-tr marked this pull request as ready for review February 24, 2026 13:58
@km-tr
km-tr merged commit d4ce2b7 into main Feb 24, 2026
12 checks passed
@km-tr
km-tr deleted the fix/release-plz-modify branch February 24, 2026 13:58
@km-tr km-tr mentioned this pull request Feb 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a configuration issue in release-plz that prevented it from detecting unreleased changes. The project distributes binaries via cargo-dist rather than publishing to crates.io, but the git_only option was missing from the configuration. Without this option, release-plz attempts to check the crates.io registry (which always fails when publish=false) instead of using git tags for version detection.

Changes:

  • Add git_only = true to release-plz.toml to enable git tag-based version detection

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

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