feat: add selfmedia production release lane

This commit is contained in:
Codex
2026-07-14 13:15:28 +02:00
parent 28c1468088
commit df37c7dc84
11 changed files with 323 additions and 14 deletions
@@ -6,6 +6,7 @@ export interface PacBootstrapRepositoryIdentity {
readonly owner: string;
readonly repo: string;
readonly cloneUrl: string;
readonly sourceBranch: string;
}
export function resolvePacBootstrapMirrorRepository(
@@ -18,12 +19,13 @@ export function resolvePacBootstrapMirrorRepository(
&& item.gitea.owner === repository.owner
&& item.gitea.name === repository.repo
&& repositoryUrlIdentity(item.gitea.readUrl) === repositoryUrlIdentity(repository.cloneUrl)
&& item.upstream.branch === repository.sourceBranch
));
if (candidates.length !== 1) {
const disposition = candidates.length === 0 ? "no exact match" : `${candidates.length} exact matches`;
throw new Error(
`cannot resolve the YAML-owned Gitea bootstrap repository for PaC repository ${repository.id} on ${targetId}: ${disposition}; `
+ "match targetId, gitea owner/name, and read URL in config/platform-infra/gitea.yaml",
+ "match targetId, gitea owner/name, read URL, and source branch in config/platform-infra/gitea.yaml",
);
}
return candidates[0];