Skip to content

feat: add --minor and --patch flags for version updates#43

Merged
evgkrsk merged 3 commits into
masterfrom
feature/update-not-to-latest
Mar 29, 2026
Merged

feat: add --minor and --patch flags for version updates#43
evgkrsk merged 3 commits into
masterfrom
feature/update-not-to-latest

Conversation

@evgkrsk
Copy link
Copy Markdown
Owner

@evgkrsk evgkrsk commented Mar 29, 2026

Summary

  • Add --minor flag to update versions within same major (e.g., 1.2.3 → 1.9.5)
  • Add --patch flag to update versions within same major.minor (e.g., 1.2.3 → 1.2.8)
  • Implement mutual exclusion validation for the flags
  • Filter out pre-release versions (e.g., 1.0.0-alpha)
  • Show version selection explanation in output

Examples

reqs-up --minor    # 1.2.3 → 1.9.5 (max minor for 1.x)
reqs-up --patch   # 1.2.3 → 1.2.8 (max patch for 1.2.x)

Testing

  • All 46 tests pass

evgkrsk added 3 commits March 29, 2026 21:38
- Add -m/--minor flag to update within minor version (same major)
- Add -p/--patch flag to update within patch version (same major and minor)
- Implement mutual exclusion validation in OptionParser
- Filter out pre-release versions (e.g., 1.0.0-alpha)
- Add warnings for non-semver tags
- Show version selection explanation in output
- Update README with new options and examples
- Add unit and CLI tests
- Remove not_nil! usage, use proper nil check instead
- Simplify cyclomatic complexity by extracting methods
- Rename block parameters to more descriptive names
- Remove redundant return statements
@evgkrsk evgkrsk merged commit 4995ccc into master Mar 29, 2026
2 checks passed
@evgkrsk evgkrsk deleted the feature/update-not-to-latest branch March 29, 2026 15:18
evgkrsk added a commit that referenced this pull request Apr 12, 2026
* feat: add --minor and --patch flags for version updates

- Add -m/--minor flag to update within minor version (same major)
- Add -p/--patch flag to update within patch version (same major and minor)
- Implement mutual exclusion validation in OptionParser
- Filter out pre-release versions (e.g., 1.0.0-alpha)
- Add warnings for non-semver tags
- Show version selection explanation in output
- Update README with new options and examples
- Add unit and CLI tests

* fix: address ameba linter issues

- Remove not_nil! usage, use proper nil check instead
- Simplify cyclomatic complexity by extracting methods
- Rename block parameters to more descriptive names
- Remove redundant return statements

* release: bump version to 0.2.0
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