fix(cli): handle stacked version suffixes #202

Merged
jmiller merged 10 commits from dev into main 2026-05-28 21:54:00 +00:00
Owner

Summary

  • Fix all version CLI tools to match and strip multiple stacked suffixes (-dev-dev-dev)
  • Prevents suffix snowballing when CI runs multiple times
  • Affected tools: version_bump, version_read, version_check, version_set_platform, release_cascade

Test plan

  • Run version_set_platform.php with a version like 02.08.00-dev-dev-dev and verify it outputs 02.08.00-dev
  • Verify auto-bump workflow produces clean single-suffix versions

?? Generated with Claude Code

## Summary - Fix all version CLI tools to match and strip multiple stacked suffixes (`-dev-dev-dev`) - Prevents suffix snowballing when CI runs multiple times - Affected tools: version_bump, version_read, version_check, version_set_platform, release_cascade ## Test plan - [ ] Run `version_set_platform.php` with a version like `02.08.00-dev-dev-dev` and verify it outputs `02.08.00-dev` - [ ] Verify auto-bump workflow produces clean single-suffix versions ?? Generated with [Claude Code](https://claude.com/claude-code)
jmiller added 10 commits 2026-05-28 21:52:55 +00:00
- Add rm -rf before git clone in all workflow setup steps to prevent
  stale CLI tools from being reused across runner jobs
- Delete templates/workflows/ — .mokogitea/workflows/ is the canonical
  source for workflow templates

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When building Joomla packages, sub-package ZIPs are placed in a
packages/ subdirectory. The manifest <files> element must have
folder="packages" for Joomla to find them. This fix ensures the
attribute is always present, even if version bump tools overwrote it.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix(cli): handle stacked version suffixes (-dev-dev-dev)
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Auto Version Bump / Version Bump (push) Successful in 4s
Platform: moko-platform CI / Gate 1: Code Quality (push) Failing after 47s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
6703935d80
All version CLI tools now match and strip multiple stacked suffixes
instead of only the last one. This prevents -dev-dev-dev snowballing
when CI runs multiple times before cleanup.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chore(version): auto-bump patch 09.02.09-dev [skip ci]
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
Universal: Build & Release / Promote Pre-Release to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Failing after 11s
83bb3fd084
jmiller merged commit a8a9e1d31f into main 2026-05-28 21:54:00 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#202