From c665a7a31d17683aac9655e55fcce48e8e05b886 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 28 May 2026 18:03:10 -0500 Subject: [PATCH 1/6] fix(cli): resolve repo name from realpath when using --path . Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- cli/joomla_release.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/joomla_release.php b/cli/joomla_release.php index 403da57..7659060 100644 --- a/cli/joomla_release.php +++ b/cli/joomla_release.php @@ -149,7 +149,7 @@ class JoomlaRelease extends CliFramework } // ── Step 4: Upload to GitHub Release ────────────────────────── - $repoFullName = self::ORG . '/' . ($repo ?: basename($path)); + $repoFullName = self::ORG . '/' . ($repo ?: basename(realpath($path) ?: $path)); if (!$dryRun) { $this->ensureRelease($repoFullName, $releaseTag, $displayVersion, $stability); -- 2.52.0 From 10d0a809e91169400f478ee00541a93c6517fa2d Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Thu, 28 May 2026 23:03:18 +0000 Subject: [PATCH 2/6] chore(version): auto-bump patch 09.04.01-dev [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fd587d..8250c60 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ DEFGROUP: MokoStandards.Root INGROUP: MokoStandards REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform PATH: /README.md -VERSION: 09.04.00 +VERSION: 09.04.01 BRIEF: Project overview and documentation --> -- 2.52.0 From d332eaf80a20761845f8d797d0399e65bcdc7252 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 28 May 2026 18:47:11 -0500 Subject: [PATCH 3/6] fix(cli): use proper release name format in joomla_release Release names now follow "ExtName VERSION (package-VERSION)" format instead of generic "vNN (latest: VERSION)". Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- cli/joomla_release.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cli/joomla_release.php b/cli/joomla_release.php index 7659060..d57905e 100644 --- a/cli/joomla_release.php +++ b/cli/joomla_release.php @@ -152,7 +152,8 @@ class JoomlaRelease extends CliFramework $repoFullName = self::ORG . '/' . ($repo ?: basename(realpath($path) ?: $path)); if (!$dryRun) { - $this->ensureRelease($repoFullName, $releaseTag, $displayVersion, $stability); + $packageName = "{$prefix}{$meta['element']}-{$displayVersion}"; + $this->ensureRelease($repoFullName, $releaseTag, $displayVersion, $stability, $meta['name'], $packageName); $this->uploadAsset($repoFullName, $releaseTag, $zipPath, $zipName); $this->uploadAsset($repoFullName, $releaseTag, $tarPath, $tarName); $this->log('SUCCESS', "Uploaded to release: {$releaseTag}"); @@ -367,14 +368,17 @@ class JoomlaRelease extends CliFramework // ── GitHub Release ─────────────────────────────────────────────── - private function ensureRelease(string $repo, string $tag, string $version, string $stability): void + private function ensureRelease(string $repo, string $tag, string $version, string $stability, string $extName = '', string $packageName = ''): void { + $releaseName = $extName !== '' + ? "{$extName} {$version} ({$packageName})" + : (($stability === 'stable') ? "v" . explode('.', $version)[0] . " (latest: {$version})" : "{$tag} ({$version})"); try { $this->api->get("/repos/{$repo}/releases/tags/{$tag}"); } catch (\Exception $e) { $this->api->post("/repos/{$repo}/releases", [ 'tag_name' => $tag, - 'name' => ($stability === 'stable') ? "v" . explode('.', $version)[0] . " (latest: {$version})" : "{$tag} ({$version})", + 'name' => $releaseName, 'body' => "## {$version}\n\nCreated by MokoStandards release pipeline.", 'prerelease' => ($stability !== 'stable'), ]); -- 2.52.0 From c4bfbae348ffd7de7d1a362a9f82eb10ecfb5394 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Thu, 28 May 2026 23:47:30 +0000 Subject: [PATCH 4/6] chore(version): auto-bump patch 09.04.02-dev [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8250c60..ad4671b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ DEFGROUP: MokoStandards.Root INGROUP: MokoStandards REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform PATH: /README.md -VERSION: 09.04.01 +VERSION: 09.04.02 BRIEF: Project overview and documentation --> -- 2.52.0 From 25d51c1ec0e373dcc96da688693d10d2f72a80cf Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Thu, 28 May 2026 22:45:08 -0500 Subject: [PATCH 5/6] fix(cli): remove tpl_ prefix from template element in updates.xml Joomla stores templates in #__extensions without a prefix (bare name like "mokoonyx"), not "tpl_mokoonyx". The tpl_ prefix prevented Joomla from matching the update to the installed extension. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- cli/updates_xml_build.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli/updates_xml_build.php b/cli/updates_xml_build.php index fb46371..c7b3435 100644 --- a/cli/updates_xml_build.php +++ b/cli/updates_xml_build.php @@ -374,13 +374,12 @@ function buildEntry( $lines[] = " {$displayName}"; $lines[] = " {$displayName} {$stabilityLabel} build."; // Element in updates.xml must match what Joomla stores in #__extensions. - // Plugins are stored as bare element (folder handles grouping). - // All other types need their prefix: mod_, com_, tpl_, pkg_, lib_. + // Plugins and templates are stored as bare element (no prefix). + // Other types need their prefix: mod_, com_, pkg_, lib_. $prefixMap = [ 'package' => 'pkg_', 'module' => 'mod_', 'component' => 'com_', - 'template' => 'tpl_', 'library' => 'lib_', ]; $dbElement = isset($prefixMap[$extType]) ? $prefixMap[$extType] . $extElement : $extElement; -- 2.52.0 From 50bb4d2def333d1f5331267ace09c8fa4f1761d4 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Fri, 29 May 2026 03:46:42 +0000 Subject: [PATCH 6/6] chore(version): auto-bump patch 09.04.03-dev [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad4671b..c18e87a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ DEFGROUP: MokoStandards.Root INGROUP: MokoStandards REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform PATH: /README.md -VERSION: 09.04.02 +VERSION: 09.04.03 BRIEF: Project overview and documentation --> -- 2.52.0