openclaw/scripts/github/barnacle-state.d.mts
Vincent Koc 526f08b622
fix(ci): protect reactivated work during Barnacle cleanup (#177120)
* fix(ci): protect reactivated work during Barnacle cleanup

* fix(ci): recheck Barnacle admission after comment pagination
2026-10-23 19:27:44 +08:00

35 lines
1.2 KiB
TypeScript

export const BARNACLE: Map<number, number>;
export function time(value?: string): number;
export function automated(user: unknown): boolean;
export function trustedBarnacle(comment: unknown): boolean;
export function verifiedComment(
comment: unknown,
body: string,
expectedAppId: number,
existing?: boolean,
): boolean;
export function labelsOf(item: unknown): string[];
export function cheapProtection(item: unknown): string | null;
export function admissionKey(item: unknown): string;
export function freshTarget(
github: unknown,
context: unknown,
number: number,
): Promise<Record<string, unknown>>;
export function ownershipProtection(io: unknown, item: unknown): Promise<string | null>;
export function securityProtection(comments: unknown[], item: unknown): string | null;
export function humanActivityAt(snapshot: unknown, ignoredComment?: number): number;
export function reader(
github: unknown,
checksGithub: unknown,
context: unknown,
budget: number,
): unknown;
export function snapshotOf(
github: unknown,
checksGithub: unknown,
io: unknown,
number: number,
kind?: "issue" | "pull-request",
inspectChecks?: boolean,
): Promise<Record<string, unknown>>;