feat(release): Support for version selection based on the current code#467
feat(release): Support for version selection based on the current code#467
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for selecting a component’s release version from the version declared in code (with optional bump behavior), and updates tests and documentation accordingly.
Changes:
- Extend
Semver#bumpto support preserving/truncating version segment length via a newminimum_filloption. - Add
version_from_codecomponent configuration and integrate it into release version resolution logic. - Update/expand unit tests and apply minor documentation and dev-tooling tweaks.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| toys-release/toys/.test/test_semver.rb | Expanded Semver unit coverage, including new bump behavior and options. |
| toys-release/toys/.test/test_request_spec.rb | Added tests validating version_from_code behavior and error handling. |
| toys-release/toys/.test/test_repo_settings.rb | Added settings parsing tests for version_from_code. |
| toys-release/toys/.lib/toys/release/semver.rb | Updated bump algorithm and introduced minimum_fill: keyword. |
| toys-release/toys/.lib/toys/release/request_spec.rb | Added logic to resolve versions using in-code VERSION when configured. |
| toys-release/toys/.lib/toys/release/repo_settings.rb | Added VersionFromCodeSettings and component-level version_from_code parsing. |
| toys-release/docs/guide.md | Minor guide edits and example updates. |
| toys-release/.toys/.toys.rb | Enabled filesystem completion for test tool remaining args. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b385ab2 to
01d5602
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9db222b to
8879ca5
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8879ca5 to
55530bb
Compare
feat(release): Support for version selection based on the current code
docs(release): Minor fixes to the toys-release guide