feature/cli-release-tools
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Generic: Repo Health / Release configuration (push) Successful in 4s
Generic: Repo Health / Scripts governance (push) Successful in 4s
Generic: Repo Health / Repository health (push) Failing after 5s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (pull_request) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (pull_request) Blocked by required conditions
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 5s
Universal: PR Check / Validate PR (pull_request) Successful in 4s
Platform: moko-platform CI / Gate 1: Code Quality (pull_request) Failing after 10s
Generic: Repo Health / Release configuration (pull_request) Successful in 4s
Generic: Repo Health / Repository health (pull_request) Failing after 4s
Generic: Repo Health / Scripts governance (pull_request) Successful in 5s
Platform: moko-platform CI / Gate 5: Template Integrity (pull_request) Has been skipped
Platform: moko-platform CI / CI Summary (pull_request) Has been cancelled
- release_verify.php: Post-release artifact verification (ZIP integrity, manifest version, SHA256 vs updates.xml, disallowed files check) - release_validate.php: Pre-release sanity checks (version consistency across README, CHANGELOG, manifest, updates.xml, composer.json) - release_body_update.php: Update Gitea release body with changelog extract and checksums table via API - dev_branch_reset.php: Delete and recreate dev branch from main via Gitea API Resolves: #56, #60, #62, #64 Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
MokoStandards Enterprise API
PHP implementation of MokoStandards — enterprise standards, automation framework, workflow templates, and bulk sync tooling.
Primary platform: Gitea — git.mokoconsulting.tech Backup mirror: GitHub (read-only mirror)
What Lives Here
| Directory | Purpose |
|---|---|
lib/Enterprise/ |
38 PHP enterprise library classes (platform adapters, sync, validation, plugins) |
cli/ |
CLI scripts (archive, create, release, sync rulesets, version management) |
automation/ |
Bulk sync, push files, repo cleanup, Gitea migration |
validate/ |
18 validation scripts (health, structure, secrets, syntax, drift) |
templates/ |
Workflow templates and config templates synced to governed repos |
definitions/ |
Repository structure definitions (.tf format) |
deploy/ |
Deployment scripts (SFTP, Joomla) |
maintenance/ |
Labels, inventory, SHA pinning, version sync |
tools/ |
Standalone tools (legal doc generator) |
tests/ |
PHPUnit test suite |
Installation
composer require mokoconsulting-tech/enterprise
Composer Registry
This package is served from Gitea package registry. Add this to your composer.json:
{
"repositories": [
{
"type": "composer",
"url": "https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer"
}
]
}
CLI Tools
# Health check
vendor/bin/moko health -- --path .
# Sync standards
vendor/bin/moko sync
# Inventory
vendor/bin/moko inventory -- --path .
Platform Configuration
| Variable | Purpose |
|---|---|
GIT_PLATFORM |
gitea (default) or github |
GA_TOKEN |
Gitea API / Gitea Actions token |
GH_TOKEN |
GitHub API token (for mirror sync) |
GITEA_URL |
Gitea instance URL (default: https://git.mokoconsulting.tech) |
GITEA_ORG |
Gitea organization (default: MokoConsulting) |
License
GPL-3.0-or-later — See LICENSE.md
Description
Enterprise automation, validation, sync, and governance engine for all Moko Consulting repositories
7.2 MiB
Languages
HCL
59.7%
PHP
37.4%
Shell
1%
HTML
0.9%
CSS
0.5%
Other
0.5%