fix(version-bump): prevent dev from falling behind stable (#283) #288

Closed
jmiller wants to merge 2 commits from fix/version-bump-manifest-aware into main
Owner

Adds --min-version argument and auto-detection from git tags/branches so version_bump.php never produces a version lower than what's already released on a higher channel.

Adds --min-version argument and auto-detection from git tags/branches so version_bump.php never produces a version lower than what's already released on a higher channel.
jmiller added 2 commits 2026-06-21 02:36:18 +00:00
fix(version-bump): prevent dev from falling behind stable (#283)
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 10s
d5fa609f15
version_bump.php now checks two additional sources before bumping:

1. --min-version argument: workflow can pass the current stable version
   so the bump is guaranteed to be above it
2. Auto-detect from git: scans commit messages and remote branch
   manifests (origin/main, origin/rc) to find the highest version
   released on any channel. If a higher version exists on another
   branch, uses that as the base instead of the local manifest.

This prevents the scenario where dev builds at 02.44.xx while stable
is at 02.45.00 — the bump will now use 02.45.00 as the base and
produce 02.45.01-dev or 02.46.00-dev depending on bump type.
jmiller closed this pull request 2026-06-21 02:51:08 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/mokocli#288