-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Update bumping support and add Sync #99
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
Conversation
| } 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
| } 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
There was a problem hiding this 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. |
No description provided.