Title: Fix release version detection and bump arithmetic for prerelease tags by navbytes · Pull Request #20 · navbytes/opencode-plugins · GitHub
Open Graph Title: Fix release version detection and bump arithmetic for prerelease tags by navbytes · Pull Request #20 · navbytes/opencode-plugins
X Title: Fix release version detection and bump arithmetic for prerelease tags by navbytes · Pull Request #20 · navbytes/opencode-plugins
Description: Summary Follow-up to #19. That PR's dry-run verification surfaced a real, pre-existing bug in release.yml's "Decide the version" step (not introduced by the monorepo migration, but hit while validating it): git tag --list ... --sort=-v:refname ranks a -beta.N tag above the final release it precedes, since git has no built-in notion of prerelease precedence unless told — so v0.3.0-beta.3 was beating v0.3.0 as "latest" in this repo's actual tag history. Fixed with git config versionsort.suffix -beta. Whenever the resolved "latest" tag itself carries a suffix (a real case: mid-beta-series, no stable tag yet), IFS=. read -r major minor patch <<< "$latest" put "0-beta.3" in $patch, and $((patch+1)) crashed with a syntax error. Fixed by bumping off ${latest%%-*} (the base version, suffix stripped). Both were confirmed against this repo's real tag history in a local sandbox and via a workflow_dispatch dry run on #19's branch before this fix (crashed exactly as described). Test plan Sandboxed the exact shell logic against 3 scenarios: bare v* tags with a final release beating its own betas (now picks v0.3.0 not v0.3.0-beta.3), an explicit version input overriding everything, and a package with only prerelease tags (bump no longer crashes). Trigger release.yml via workflow_dispatch with dry_run: true after merge to confirm against live tag history.
Open Graph Description: Summary Follow-up to #19. That PR's dry-run verification surfaced a real, pre-existing bug in release.yml's "Decide the version" step (not introduced by the monorepo migration, bu...
X Description: Summary Follow-up to #19. That PR's dry-run verification surfaced a real, pre-existing bug in release.yml's "Decide the version" step (not introduced by the monore...
Opengraph URL: https://github.com/navbytes/opencode-plugins/pull/20
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:11ea9a24-b1bc-63dc-aaf2-14e01c0fdbea |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CFF0:3F8AB1:3494CE9:42D2F4D:6B01C66D |
| html-safe-nonce | 686cbcb530ccc5342a3a4a195be71ddbed33a65e74f04d88a54e97badb4cb032 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkYwOjNGOEFCMTozNDk0Q0U5OjQyRDJGNEQ6NkIwMUM2NkQiLCJ2aXNpdG9yX2lkIjoiMzk1MTc1NzE2OTg0MTUyMjI4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 07300d8f418a65dd5990bceb4afbc57d7e25b86679b9b6c67a551b6a1e079348 |
| hovercard-subject-tag | pull_request:4489996427 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/navbytes/opencode-plugins/pull/20/files |
| twitter:image | https://avatars.githubusercontent.com/u/25281802?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25281802?s=400&v=4 |
| og:image:alt | Summary Follow-up to #19. That PR's dry-run verification surfaced a real, pre-existing bug in release.yml's "Decide the version" step (not introduced by the monorepo migration, bu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/navbytes/opencode-plugins git https://github.com/navbytes/opencode-plugins.git |
| octolytics-dimension-user_id | 25281802 |
| octolytics-dimension-user_login | navbytes |
| octolytics-dimension-repository_id | 1354341697 |
| octolytics-dimension-repository_nwo | navbytes/opencode-plugins |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1354341697 |
| octolytics-dimension-repository_network_root_nwo | navbytes/opencode-plugins |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width