chore: unify default opencode version into single source of truth#30
Merged
Conversation
- Add setup-opencode/default-version as single source of truth for min version - Each action resolves version from the shared file when input is empty - Update FAKE_OPENCODE_VERSION in CI to match new minimum (1.14.20)
|
有条件合并 该 PR 将三个 action 中硬编码的默认版本号统一到 阻塞项
建议项
|
- 'none' input converts to empty string, preserving ability to disable version checking (matches updated description) - Add explicit file-not-found error for default-version cross-directory dependency instead of silent cat failure
|
有条件合并 PR 将三个 action 中硬编码的默认版本号统一到 阻塞项
建议项
|
Use tr -d to remove all whitespace (including BOM, trailing spaces) and validate against semver pattern before passing to installer.
|
可合并 该 PR 将三个 action 中硬编码的默认版本号统一到 阻塞项:无 建议项:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
setup-opencode/default-versionfile as single source of truth for minimum version (1.14.20)versioninput is empty, eliminating hardcoded duplicatesFAKE_OPENCODE_VERSIONin CI to match new minimumBefore
setup-opencode/action.yml:1.4.5,review/action.yml:1.4.5,github-run-opencode/action.yml:1.14.19After
All three actions resolve from
setup-opencode/default-version(1.14.20)