Files
reverse-engineering-anything/scripts/ci/release-attempt.d.mts
T
morluto ad2b34ca9b ci(release): preserve unpublished versions and verify npm before tagging (#12770)
* ci(release): require full qualification before tagging

* ci(release): preserve unpublished versions and verify npm before tagging

* test(release): exercise publication gates on both release routes

* fix(release): fetch the live main checkpoint before verifying it

* fix(release): constrain GitHub requests and workflow output

* fix(release): honor GitHub label and recovery API contracts
2026-11-20 12:08:59 +00:00

42 lines
1.1 KiB
TypeScript

export function recordReleaseAttempt(
api: (path: string, body?: { ref: string; sha: string }) => Promise<Response>,
source: string,
parent: string,
decision: "abandon" | "publish",
): Promise<void>;
export function inspectGithubRelease(
api: (path: string) => Promise<Response>,
tag: string,
source: string,
): Promise<boolean>;
export function verifyFrozenReleaseBranch(
api: (path: string) => Promise<Response>,
branch: string,
source: string,
): Promise<void>;
export function requireCurrentMainCheckpoint(
run: (program: string, args: string[]) => Promise<string>,
api: (path: string) => Promise<Response>,
source: string,
): Promise<void>;
export function githubApi(
repository: string,
token: string,
): (
path: string,
body?: Record<string, string>,
method?: string,
) => Promise<Response>;
export function retireAbandonedRelease(
run: (program: string, args: string[]) => Promise<string>,
api: (
path: string,
body?: Record<string, string>,
method?: string,
) => Promise<Response>,
repository: string,
source: string,
pr: { number: number; labels: { name: string }[] },
): Promise<void>;