这是indexloc提供的服务,不要输入任何密码
Skip to content

Add since option to version #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 27, 2025
Merged

Add since option to version #191

merged 5 commits into from
May 27, 2025

Conversation

pksunkara
Copy link
Owner

  • Fix issues with recent changes in changed
  • Remove include-merged-tags option
  • Added since option to version
  • Consistent value names in help msg

@pksunkara pksunkara requested a review from Copilot May 27, 2025 01:45
Copy link

@Copilot 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

Adds a --since flag to versioning commands, removes the deprecated include-merged-tags option, and normalizes CLI parameter names to uppercase across help messages and documentation.

  • Introduce since option in changable and version logic
  • Remove include-merged-tags entirely
  • Update all value_name attributes (and README/CHANGELOG) to use uppercase identifiers

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utils/version.rs Added handling for self.change.since, defaulting to last tag and passing it into package diff
src/utils/git.rs Normalized value_name for several options to uppercase (PATTERN, PREFIX, REMOTE)
src/utils/changable.rs Removed include_merged_tags, added since field and special-case for no-tag in ChangeData
src/exec.rs Normalized value_name for ignore to uppercase
src/changed.rs Switched self.since references to self.change.since
README.md Updated CLI examples to [OPTIONS], uppercase PATTERN/IDENTIFIER, and added --since
CHANGELOG.md Moved 0.4.0 to “Unreleased” and documented removed flags and new since option
Comments suppressed due to low confidence (1)

cargo-workspaces/src/utils/version.rs:85

  • There are no tests covering the new --since logic in do_versioning; consider adding unit or integration tests to verify filtering by a custom since ref.
let mut since = self.change.since.clone();

@pksunkara pksunkara merged commit 2833930 into master May 27, 2025
7 checks passed
@pksunkara pksunkara deleted the since branch May 27, 2025 03:11
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.

1 participant