cli: release_validate.php - pre-release sanity checks #60

Closed
opened 2026-05-23 22:57:54 +00:00 by jmiller · 1 comment
Owner

Summary

Extract pre-release validation from auto-release.yml (lines 228-322) into a CLI tool.

What it does

  • Validates version consistency across README, CHANGELOG, composer.json, manifests
  • Checks for required files (LICENSE)
  • Platform-specific validation (Joomla XML, Dolibarr mod file)
  • Outputs GITHUB_STEP_SUMMARY compatible report

CLI interface

php cli/release_validate.php --path . --version "$VERSION" --platform joomla --output-summary

Priority

High complexity, high reuse.

## Summary Extract pre-release validation from auto-release.yml (lines 228-322) into a CLI tool. ## What it does - Validates version consistency across README, CHANGELOG, composer.json, manifests - Checks for required files (LICENSE) - Platform-specific validation (Joomla XML, Dolibarr mod file) - Outputs GITHUB_STEP_SUMMARY compatible report ## CLI interface ```bash php cli/release_validate.php --path . --version "$VERSION" --platform joomla --output-summary ``` ## Priority High complexity, high reuse.
Author
Owner

Completed

Implemented in cli/release_validate.php on branch feature/cli-release-tools.

Test proof (MokoOnyx dev branch, checking 02.06.00):

| Check | Result | Details |
|-------|--------|--------|
| README.md version | FAIL | 02.06.00 not found in README.md |
| CHANGELOG.md version | PASS | Section for 02.06.00 found |
| LICENSE | PASS | Found |
| Manifest version | FAIL | 02.07.00 != 02.06.00 |
| updates.xml version | PASS | 02.06.00 found |

Validation: 3 passed, 2 failed, 0 warnings

Failures are correct — dev branch has already bumped to 02.07.00. Tool correctly detected the drift.

CLI interface:

php cli/release_validate.php --path . --version XX.YY.ZZ --platform joomla --output-summary
## Completed Implemented in `cli/release_validate.php` on branch [`feature/cli-release-tools`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/cli-release-tools/cli/release_validate.php). ### Test proof (MokoOnyx dev branch, checking 02.06.00): ``` | Check | Result | Details | |-------|--------|--------| | README.md version | FAIL | 02.06.00 not found in README.md | | CHANGELOG.md version | PASS | Section for 02.06.00 found | | LICENSE | PASS | Found | | Manifest version | FAIL | 02.07.00 != 02.06.00 | | updates.xml version | PASS | 02.06.00 found | Validation: 3 passed, 2 failed, 0 warnings ``` Failures are correct — dev branch has already bumped to 02.07.00. Tool correctly detected the drift. ### CLI interface: ```bash php cli/release_validate.php --path . --version XX.YY.ZZ --platform joomla --output-summary ```
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#60