mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
* fix(ci): verify script declaration contracts * fix(ci): harden declaration export analysis * fix(ci): cover opaque script module exports * test(ci): cover cyclic script declaration barrels
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
export const PROOF_OVERRIDE_LABEL: "proof: override";
|
|
export const PROOF_SUFFICIENT_LABEL: "proof: sufficient";
|
|
export const NEEDS_PR_CONTEXT_LABEL: "triage: needs-pr-context";
|
|
type PullRequest = Record<string, unknown>;
|
|
type Comment = Record<string, unknown>;
|
|
type Evaluation = {
|
|
status: string;
|
|
reason: string;
|
|
applies: boolean;
|
|
passed: boolean;
|
|
missingSections: string[];
|
|
};
|
|
|
|
export function readBoundedGitHubApiJson(
|
|
response: Response,
|
|
label: string,
|
|
maxBytes?: number,
|
|
options?: { timeoutMs?: number },
|
|
): Promise<unknown>;
|
|
export function isMaintainerTeamMember(params?: {
|
|
token?: string;
|
|
org?: string;
|
|
login?: string;
|
|
teamSlug?: string;
|
|
fetch?: typeof globalThis.fetch;
|
|
timeoutMs?: number;
|
|
}): Promise<boolean>;
|
|
export function hasAuthoredPullRequestSection(heading: string, body?: string): boolean;
|
|
export function hasClawSweeperExactHeadProof(params?: {
|
|
pullRequest?: PullRequest;
|
|
comments?: Comment[];
|
|
}): boolean;
|
|
export function evaluateClawSweeperExactHeadProof(params?: {
|
|
pullRequest?: PullRequest;
|
|
comments?: Comment[];
|
|
}): Evaluation;
|
|
export function evaluatePullRequestContext(params?: { pullRequest?: PullRequest }): Evaluation;
|
|
export function labelsForPullRequestContext(evaluation: Evaluation): string[];
|