mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
export type ReleaseValidationCampaignArtifact =
|
|
| {
|
|
schema: "openclaw.release-validation-campaign/v1";
|
|
operation: "upsert";
|
|
tag: string;
|
|
stableTrain: string;
|
|
releaseUrl: string;
|
|
releaseCommit: string;
|
|
guidanceMainSha: string;
|
|
title: string;
|
|
body: string;
|
|
}
|
|
| {
|
|
schema: "openclaw.release-validation-campaign/v1";
|
|
operation: "close";
|
|
tag: string;
|
|
stableTrain: string;
|
|
releaseUrl: string;
|
|
};
|
|
|
|
export function validateReleaseValidationCampaignArtifact(
|
|
artifact: unknown,
|
|
options?: {
|
|
expectedTag?: string;
|
|
expectedReleaseCommit?: string;
|
|
expectedGuidanceMainSha?: string;
|
|
},
|
|
): ReleaseValidationCampaignArtifact;
|
|
|
|
export function runReleaseValidationCampaignPublish(params: {
|
|
github: any;
|
|
context: { repo: { owner: string; repo: string } };
|
|
core: { info(message: string): void; setOutput?(name: string, value: string): void };
|
|
artifact: unknown;
|
|
expectedTag?: string;
|
|
expectedReleaseCommit?: string;
|
|
expectedGuidanceMainSha?: string;
|
|
campaignIssueNumber?: number;
|
|
}): Promise<{
|
|
action: "create" | "update" | "close" | "noop";
|
|
issueNumber: number | undefined;
|
|
issueUrl: string | undefined;
|
|
}>;
|