fix(cli): use proper release name format in joomla_release
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (push) Blocked by required conditions
Platform: moko-platform CI / Gate 5: Template Integrity (push) Blocked by required conditions
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Release configuration (push) Blocked by required conditions
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Auto Version Bump / Version Bump (push) Successful in 3s
Platform: moko-platform CI / Gate 1: Code Quality (push) Failing after 43s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Blocked by required conditions
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Blocked by required conditions
Platform: moko-platform CI / Gate 4: Governance (push) Blocked by required conditions
Platform: moko-platform CI / Gate 5: Template Integrity (push) Blocked by required conditions
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Release configuration (push) Blocked by required conditions
Generic: Repo Health / Scripts governance (push) Blocked by required conditions
Generic: Repo Health / Repository health (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Auto Version Bump / Version Bump (push) Successful in 3s
Platform: moko-platform CI / Gate 1: Code Quality (push) Failing after 43s
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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'),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user