Skip to content

Conversation

@GeekMasher
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 28, 2025 20:05
Comment on lines +90 to +98
} else {
if *minor {
BumpMode::Minor
} else if *major {
BumpMode::Major
} else {
BumpMode::Patch
}
};

Check warning

Code scanning / clippy

this else { if .. } block can be collapsed Warning

this else { if .. } block can be collapsed
Comment on lines +90 to +98
} else {
if *minor {
BumpMode::Minor
} else if *major {
BumpMode::Major
} else {
BumpMode::Patch
}
};

Check warning

Code scanning / clippy

this else { if .. } block can be collapsed Warning

this else { if .. } block can be collapsed
Copy link

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

This PR adds a new "Sync" mode while refactoring the bumping functionality to use a struct variant with explicit version information. Key changes include:

  • Updating the Bump variant of WorkflowMode from a tuple to a struct with separate mode and version fields.
  • Adding Sync command support in both CLI and interactive mode with corresponding version parsing logic.
  • Extending default file location patterns.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/workflows.rs Refactored the Bump variant to a struct and updated the logic for version handling.
src/main.rs Introduced Sync command and adjusted version handling logic for the bump command.
src/interactive.rs Added Sync mode to the interactive selection and refactored version prompting.
src/defaults.yml Added additional file matching patterns for Docker-related files.
src/cli.rs Extended the CLI to support the new Sync command.

@GeekMasher GeekMasher enabled auto-merge (rebase) April 28, 2025 20:10
@GeekMasher GeekMasher merged commit e3fabad into main Apr 28, 2025
11 checks passed
@GeekMasher GeekMasher deleted the update-bumping-sync branch April 28, 2025 20:10
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