mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 18:26:51 +00:00
21 lines
668 B
TypeScript
21 lines
668 B
TypeScript
export function classifyPrForSweep(params: {
|
|
pr: {
|
|
draft?: boolean;
|
|
created_at: string;
|
|
updated_at: string;
|
|
mergeable?: boolean | null;
|
|
auto_merge?: object | null;
|
|
};
|
|
ciRuns: Array<{ conclusion: string | null }>;
|
|
botCloseCount: number;
|
|
now: number;
|
|
}): { action: "refire" | "skip"; reason: string };
|
|
export function runPrCiSweeper(params: {
|
|
github: Record<string, unknown>;
|
|
context: Record<string, unknown>;
|
|
core: Pick<Console, "info"> & { setFailed: (message: string) => void };
|
|
dryRun?: boolean;
|
|
appSlug?: string;
|
|
now?: number;
|
|
}): Promise<Array<{ number: number; sha: string; action: "refire" | "skip"; reason: string }>>;
|