Skip to content

feat(release): Support for version selection based on the current code#467

Merged
dazuma merged 2 commits intomainfrom
pr/release-manual
Mar 20, 2026
Merged

feat(release): Support for version selection based on the current code#467
dazuma merged 2 commits intomainfrom
pr/release-manual

Conversation

@dazuma
Copy link
Owner

@dazuma dazuma commented Mar 19, 2026

feat(release): Support for version selection based on the current code
docs(release): Minor fixes to the toys-release guide

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 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#bump to support preserving/truncating version segment length via a new minimum_fill option.
  • Add version_from_code component 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.

@dazuma dazuma force-pushed the pr/release-manual branch 2 times, most recently from b385ab2 to 01d5602 Compare March 19, 2026 22:30
@dazuma dazuma requested a review from Copilot March 19, 2026 22:30
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

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.

@dazuma dazuma force-pushed the pr/release-manual branch 2 times, most recently from 9db222b to 8879ca5 Compare March 19, 2026 23:48
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

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.

@dazuma dazuma force-pushed the pr/release-manual branch from 8879ca5 to 55530bb Compare March 20, 2026 00:16
@dazuma dazuma merged commit 1606aae into main Mar 20, 2026
15 checks passed
@dazuma dazuma deleted the pr/release-manual branch March 20, 2026 00:27
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