feat: release_cascade.php version-aware deletion of stale releases #154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Branch created:
feature/154-feat-release-cascade-php-version-aware-d