feat: migrate todo note to nc01 github storage
This commit is contained in:
@@ -280,6 +280,14 @@ export function resolveCatalogArtifact(serviceId: string): CiCatalogArtifact {
|
||||
return artifact;
|
||||
}
|
||||
|
||||
export function assertUserServicePublishProducer(artifact: CiSourceBuildCatalogArtifact): void {
|
||||
if (artifact.producer === "ci publish-user-service") return;
|
||||
if (artifact.producer === "platform-infra pipelines-as-code") {
|
||||
throw new Error(`${artifact.serviceId} is produced by platform-infra pipelines-as-code; use bun scripts/cli.ts platform-infra pipelines-as-code plan --target NC01 --consumer unidesk-host`);
|
||||
}
|
||||
throw new Error(`${artifact.serviceId} is produced by ${artifact.producer}; use the owning producer command`);
|
||||
}
|
||||
|
||||
export function blockedArtifactResult(artifact: CiUpstreamImageCatalogArtifact | CiSourceBuildCatalogArtifact, commit: string, note: string): Record<string, unknown> {
|
||||
const base = {
|
||||
ok: false,
|
||||
|
||||
Reference in New Issue
Block a user