Public Access
feat: joomla_metadata_validate CLI command (#257) #258
Reference in New Issue
Block a user
Delete Branch "feature/257-joomla-metadata-validate"
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?
Summary
New CLI command that validates MokoGitea repo metadata against the actual Joomla extension manifest XML to catch update delivery mismatches before production.
What it checks
package_type<extension type>elementdisplay_name<name>tagversionphp_minimumdescriptionUsage
Tested against MokoSuiteBackup — all 4 checks pass
Refs #257
Validates MokoGitea repo metadata against the actual Joomla extension manifest XML to catch update delivery mismatches before production. Checks: - package_type matches <extension type> - Element name derived correctly (prefix + lowercase + clean) - Display name matches <name> tag - Version consistency (ignoring -dev/-rc suffixes) - PHP minimum matches composer.json - Description match (informational) Supports: - Local mode: reads .mokogitea/manifest.xml + Joomla XML from disk - API mode: fetches metadata via Gitea API (--token) - CI mode: --ci flag exits 1 on errors - JSON output: --json for workflow integration Handles all Joomla types: package, component, module, plugin, template, library, file. Replicates Joomla's InputFilter::clean('cmd') for element name derivation. Refs mokoplatform #257