Page:
automation-push-files.-
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-push-files.-
Jonathan Miller edited this page 2026-05-26 04:04:47 +00:00
Table of Contents
← Home
Push Files
Push specific files from moko-platform to selected repositories. Unlike bulk_sync.php which syncs all defined files, push_files.php pushes only the files you specify.
Usage
# Push a file to a single repo (creates a PR)
php automation/push_files.php --repos MokoCRM --files "src/config.php" --yes
# Push to multiple repos
php automation/push_files.php --repos "MokoCRM MokoDoliHRM" --files "LICENSE GOVERNANCE.md" --yes
# Direct commit (no PR) — pushes straight to main
php automation/push_files.php --repos MokoCRM --files "LICENSE" --direct --yes
# Skip tracking issue creation
php automation/push_files.php --repos MokoCRM --files "LICENSE" --yes --no-issue
Options
| Flag | Description |
|---|---|
--org |
GitHub organization (default: MokoConsulting) |
--repos |
Target repositories (space-separated, required) |
--files |
Files to push (space-separated, required) |
--direct |
Push directly to main (no PR) |
--no-issue |
Skip creating a tracking issue |
--dry-run |
Preview without making changes |
--yes |
Auto-confirm prompts |
Behaviour
- Creates a PR with the pushed files (unless
--directis used) - Creates/updates a tracking issue in each target repo
- Cross-links the tracking issue to the PR in the Development sidebar
- Assigns
jmillerto both PR and issue - Applies standard labels:
standards-update,mokostandards,type: chore,automation
Repo: moko-platform · moko-platform wiki
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | all |
| Applies To | All repositories |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-08 | Moko Consulting | Initial version |