From 2a84875a4e6121f6f98d7f69df56023293f2cf65 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 25 Apr 2026 00:16:25 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20repair=20bulk=20sync=20=E2=80=94=20array?= =?UTF-8?q?=20assignment=20bug=20+=20add=20missing=20workflow=20mappings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Line 876: change $entries = to $entries[] = (was overwriting all shared workflow entries, causing every repo to be skipped with empty result) - Add deploy-rs, export-mysql, pull-from-dev to shared workflows (all platforms) - Add deploy-dev, deploy-demo, deploy.yml to waas-component platform - This fix restores the bulk-repo-sync ability to push workflow templates Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/Enterprise/RepositorySynchronizer.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/Enterprise/RepositorySynchronizer.php b/lib/Enterprise/RepositorySynchronizer.php index 9309cd5..4cff0c9 100644 --- a/lib/Enterprise/RepositorySynchronizer.php +++ b/lib/Enterprise/RepositorySynchronizer.php @@ -816,6 +816,9 @@ HCL; ['templates/workflows/shared/branch-freeze.yml.template', "{$wfDir}/branch-freeze.yml"], ['templates/workflows/shared/auto-assign.yml.template', "{$wfDir}/auto-assign.yml"], ['templates/workflows/shared/changelog-validation.yml.template', "{$wfDir}/changelog-validation.yml"], + ['templates/workflows/shared/deploy-rs.yml.template', "{$wfDir}/deploy-rs.yml"], + ['templates/workflows/shared/export-mysql.yml.template', "{$wfDir}/export-mysql.yml"], + ['templates/workflows/shared/pull-from-dev.yml.template', "{$wfDir}/pull-from-dev.yml"], ['.github/workflows/standards-compliance.yml', "{$wfDir}/standards-compliance.yml"], ]; @@ -838,11 +841,14 @@ HCL; $shared[] = ['templates/workflows/dolibarr/auto-release.yml.template', "{$wfDir}/auto-release.yml"]; $shared[] = ['templates/workflows/dolibarr/ci-dolibarr.yml.template', "{$wfDir}/ci-dolibarr.yml"]; } elseif ($platform === 'waas-component' || $platform === 'joomla-template') { + $shared[] = ['templates/workflows/shared/deploy-dev.yml.template', "{$wfDir}/deploy-dev.yml"]; + $shared[] = ['templates/workflows/shared/deploy-demo.yml.template', "{$wfDir}/deploy-demo.yml"]; $shared[] = ['templates/workflows/joomla/auto-release.yml.template', "{$wfDir}/auto-release.yml"]; $shared[] = ['templates/workflows/joomla/update-server.yml.template', "{$wfDir}/update-server.yml"]; $shared[] = ['templates/workflows/joomla/ci-joomla.yml.template', "{$wfDir}/ci-joomla.yml"]; $shared[] = ['templates/workflows/joomla/repo_health.yml.template', "{$wfDir}/repo_health.yml"]; $shared[] = ['templates/workflows/joomla/deploy-manual.yml.template', "{$wfDir}/deploy-manual.yml"]; + $shared[] = ['templates/workflows/joomla/deploy.yml.template', "{$wfDir}/deploy.yml"]; } else { $shared[] = ['templates/workflows/shared/deploy-dev.yml.template', "{$wfDir}/deploy-dev.yml"]; $shared[] = ['templates/workflows/shared/deploy-demo.yml.template', "{$wfDir}/deploy-demo.yml"]; @@ -873,8 +879,7 @@ HCL; // Always create a custom/ subdirectory under the workflow dir with a README // so repos have a safe place for custom workflows that sync won't touch. - $entries = [ - [ + $entries[] = [ 'inline_content' => "# Custom Workflows\n\nPlace repo-specific workflows here.\n\n" . "- **Never overwritten** by MokoStandards bulk sync\n" . "- **Never deleted** by the repository-cleanup workflow\n" @@ -882,7 +887,6 @@ HCL; . "Synced workflows live in the parent `{$wfDir}/` directory.\n", 'destination' => "{$wfDir}/custom/README.md", 'always_overwrite' => false, - ], ]; foreach ($shared as [$source, $dest]) {