mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 14:05:49 +00:00
* 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
42 lines
1.1 KiB
TypeScript
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>;
|