Page:
automation-README.-
Pages
ARCHITECTURE
AUTO-BUMP
AUTO_CREATE_ORG_PROJECTS
Branching-Strategy
CLI_AUTOMATION
Coding-Standards
DEPLOY_SCRIPTS
DOLIBARR_MODULE_IDS
DRY_RUN_PATTERN
Documentation-Standards
File-Header-Standards
Home
JOOMLA_SYNC
LEGAL_DOC_GENERATOR_WEB_README
MANIFEST-STANDARD
MINIFICATION
MONITORING_SCRIPTS
NEW_SCRIPTS
QUICKSTART_ORG_PROJECTS
UPDATE-SERVER
WIKI_STANDARDS
WORKFLOW_STANDARDS
api-automation-index
api-definitions-default-index
api-definitions-sync-index
api-deploy-index
api-fix-index
api-index
api-maintenance-index.-
api-maintenance-index
api-plugin-index.-
api-plugin-index
api-tests-index.-
api-tests-sample-index.-
api-tests-sample-index
api-validate-index.-
automation-README.-
automation-branch-version-automation.-
automation-push-files.-
automation-repo-cleanup.-
client-repos.-.-
client-repos
standards-mokostandards-file-spec.-
standards-mokostandards-file-spec
templates-client-waas
templates-dolibarr
templates-generic
templates-mcp
unnamed
workflows-README.-
workflows-README
workflows-auto-release.-
workflows-auto-release
workflows-branch-protection.-
workflows-branch-protection
workflows-build-release.-
workflows-build-release
workflows-cascade-dev.-
workflows-cascade-dev
workflows-changelog-management.-
workflows-changelog-management
workflows-demo-deployment.-
workflows-demo-deployment
workflows-dev-branch-tracking.-
workflows-dev-branch-tracking
workflows-dev-deployment.-
workflows-dev-deployment
workflows-index.-
workflows-index
workflows-release-system.-
workflows-release-system
workflows-renovate.-
workflows-renovate
workflows-reusable-workflows.-
workflows-reusable-workflows
workflows-rs-deployment.-
workflows-rs-deployment
workflows-secret-scanning.-
workflows-secret-scanning
workflows-shared-workflows.-
workflows-shared-workflows
workflows-standards-compliance.-
workflows-standards-compliance
workflows-static-analysis.-
workflows-static-analysis
workflows-sub-issue-management.-
workflows-sub-issue-management
workflows-update-server.-
workflows-update-server
workflows-workflow-architecture.-
workflows-workflow-architecture
Clone
3
automation-README.-
Jonathan Miller edited this page 2026-05-26 04:04:46 +00:00
Table of Contents
← Home
Automation Documentation
Documentation for all automation systems deployed across moko-platform organization repositories.
Available Documentation
Automation Scripts
For details on available automation scripts, see:
- Automation Scripts - Bulk repository updates
- Maintenance Scripts - Repository maintenance utilities
- Release Scripts - Release automation utilities
CLI Tools (cli/)
| Script | Purpose |
|---|---|
create_repo.php |
Scaffold new governed repo (7-step: create, topics, .mokostandards, README, labels, sync, project) |
archive_repo.php |
Retire repo (close PRs/issues, archive on GitHub, remove sync def, create record) |
create_project.php |
Provision GitHub Projects V2 from 10 platform templates |
sync_rulesets.php |
Apply MAIN/VERSION/DEV rulesets to all repos via GitHub API |
release.php |
Full release flow (bump, propagate, version branch, tag) |
version_bump.php |
Bump version (major/minor/patch) |
version_read.php |
Read current version from README |
version_set_platform.php |
Set platform-specific version (Dolibarr/Joomla) |
platform_detect.php |
Detect platform type from repo |
release_notes.php |
Generate release notes from CHANGELOG |
Validation (validate/)
| Script | Purpose |
|---|---|
check_repo_health.php |
118-point health score (9 categories incl. rulesets) |
check_composer_deps.php |
Validate enterprise dependency version across all repos |
scan_drift.php |
Detect file/config drift from standards |
Maintenance (maintenance/)
| Script | Purpose |
|---|---|
rotate_secrets.php |
Audit DEV/DEMO/RS FTP secrets and variables |
repo_inventory.php |
Live inventory dashboard posted as GitHub issue |
repo_cleanup.php |
8 cleanup operations (branches, PRs, retired workflows, etc.) |
update_version_from_readme.php |
Propagate version across all file headers and badges |
setup_labels.php |
Deploy 58-label standard set |
CI/CD Pipeline Overview
The complete automation pipeline runs on every push and pull request.
flowchart TD
A[Code Push/PR] --> B[Gitea Actions Trigger]
B --> C[Standards Compliance Check]
B --> D[Security Scanning]
B --> E[Code Quality Analysis]
C --> C1[File Headers]
C --> C2[Tabs/Spaces Policy]
C --> C3[File Encoding]
C --> C4[Trailing Spaces]
C --> C5[CHANGELOG Format]
D --> D1[Secret Scanning]
D --> D2[CodeQL Analysis]
D --> D3[Dependency Review]
E --> E1[PHP Syntax Check]
E --> E2[Shell Script Validation]
E --> E4[Markdown Links]
C1 --> F{All Checks Pass?}
C2 --> F
C3 --> F
C4 --> F
C5 --> F
D1 --> F
D2 --> F
D3 --> F
E1 --> F
E2 --> F
E4 --> F
F -->|Yes| G[✓ Build Passes]
F -->|No| H[✗ Build Fails]
G --> I{Is Main Branch?}
I -->|Yes| J[Trigger Auto-Release]
I -->|No| K[Ready for Merge]
style A fill:#e1f5ff
style G fill:#c8e6c9
style H fill:#ffccbc
Full diagram set: docs/visual/cicd-pipeline.md
Bulk Sync Workflow
bulk_sync.php synchronizes standards across all organization repositories with checkpoint recovery.
flowchart LR
A[bulk_sync.php] --> B{--dry-run?}
B -->|Yes| C[Simulate all operations\nNo API writes\nNo checkpoints written]
B -->|No| D[Execute real sync\nWrite to GitHub API\nCheckpoint after each repo]
style C fill:#fff9c4
style D fill:#e1f5ff
Full diagram: docs/visual/bulk-sync-workflow.md
Related Documentation
Scripts Documentation
Policy & Strategy
Support
For automation-related issues:
- Review script documentation in automation/
- Contact moko-platform maintainers
Last Updated: 2026-02-26
Status: Production Ready
Repo: moko-platform · moko-platform wiki
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | all |
| Applies To | moko-platform |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-08 | Moko Consulting | Initial version |