feat: release_cascade.php version-aware deletion of stale releases #154

Closed
opened 2026-05-26 17:17:10 +00:00 by jmiller · 1 comment
Owner

Problem

release_cascade.php only deletes by channel hierarchy (e.g. stable deletes all pre-release channels). But if a stale pre-release exists on a higher channel with a lesser version number, it lingers forever.

Example: stable is at 09.01.00 but an old RC at 08.05.00 still exists because RC is not in the cascade map for stable.

Solution

Added --version flag. When provided, after the normal channel cascade, the script also checks all remaining channels and deletes any release whose version is lower than the specified version.

Usage

Files Changed

  • cli/release_cascade.php
  • .mokogitea/workflows/auto-release.yml (passes --version, fixed --api-base bug)
## Problem release_cascade.php only deletes by channel hierarchy (e.g. stable deletes all pre-release channels). But if a stale pre-release exists on a higher channel with a *lesser* version number, it lingers forever. Example: stable is at 09.01.00 but an old RC at 08.05.00 still exists because RC is not in the cascade map for stable. ## Solution Added --version flag. When provided, after the normal channel cascade, the script also checks all remaining channels and deletes any release whose version is lower than the specified version. ## Usage ## Files Changed - cli/release_cascade.php - .mokogitea/workflows/auto-release.yml (passes --version, fixed --api-base bug)
jmiller added the phpci-cdbuild labels 2026-05-26 17:17:10 +00:00
Author
Owner

Branch created: feature/154-feat-release-cascade-php-version-aware-d

git fetch origin
git checkout feature/154-feat-release-cascade-php-version-aware-d
Branch created: [`feature/154-feat-release-cascade-php-version-aware-d`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/154-feat-release-cascade-php-version-aware-d) ```bash git fetch origin git checkout feature/154-feat-release-cascade-php-version-aware-d ```
Sign in to join this conversation.
No labels build ci-cd php
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#154