@h-rig/pr-review-plugin 0.0.6-alpha.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1413 -0
- package/dist/src/plugin.d.ts +6 -0
- package/dist/src/plugin.js +1437 -0
- package/dist/src/pr-review-gate.d.ts +39 -0
- package/dist/src/pr-review-gate.js +1413 -0
- package/package.json +33 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { GithubPullRequestReview, GithubReviewThread, GithubReviewComment, GithubIssueComment, GithubStatusCheckRollupItem, GreptileScore, GreptileApiSignalInput, GreptileEvidence, PrReviewEvidence, PrReviewCycleArtifacts, StrictPrMergeGateResult, StrictPrMergeGateInput } from "@rig/contracts";
|
|
2
|
+
export declare function parseGithubPrUrl(prUrl: string): {
|
|
3
|
+
owner: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
repoName: string;
|
|
6
|
+
prNumber: number;
|
|
7
|
+
} | null;
|
|
8
|
+
export declare function isGreptileGithubLogin(value: string | null | undefined): boolean;
|
|
9
|
+
export declare function parseGreptileScore(input: string): GreptileScore | null;
|
|
10
|
+
export declare function stripHtml(input: string): string;
|
|
11
|
+
export declare function deriveGreptileEvidence(input: {
|
|
12
|
+
currentHeadSha: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
body: string;
|
|
15
|
+
bodyEditorLogin?: string | null;
|
|
16
|
+
bodyLastEditedAt?: string | null;
|
|
17
|
+
headCommittedDate?: string | null;
|
|
18
|
+
reviews: readonly GithubPullRequestReview[];
|
|
19
|
+
changedFileReviewComments: readonly GithubReviewComment[];
|
|
20
|
+
relevantIssueComments: readonly GithubIssueComment[];
|
|
21
|
+
reviewThreads: readonly GithubReviewThread[];
|
|
22
|
+
checks: readonly GithubStatusCheckRollupItem[];
|
|
23
|
+
apiSignals?: readonly GreptileApiSignalInput[];
|
|
24
|
+
}): GreptileEvidence;
|
|
25
|
+
export declare function collectPrReviewEvidence(input: StrictPrMergeGateInput & {
|
|
26
|
+
readonly apiSignals?: readonly GreptileApiSignalInput[];
|
|
27
|
+
}): Promise<PrReviewEvidence>;
|
|
28
|
+
export declare function evaluateStrictPrMergeGate(evidence: PrReviewEvidence, requireGreptile?: boolean): Omit<StrictPrMergeGateResult, "artifacts" | "steeringPrompt">;
|
|
29
|
+
export declare function buildStrictPrGateSteeringPrompt(result: Omit<StrictPrMergeGateResult, "steeringPrompt">): string;
|
|
30
|
+
export declare function persistPrReviewCycleArtifacts(input: {
|
|
31
|
+
readonly projectRoot: string;
|
|
32
|
+
readonly taskId: string;
|
|
33
|
+
readonly cycle: number;
|
|
34
|
+
readonly artifactRoot?: string | null;
|
|
35
|
+
readonly result: Omit<StrictPrMergeGateResult, "artifacts" | "steeringPrompt">;
|
|
36
|
+
readonly steeringPrompt: string;
|
|
37
|
+
readonly final?: boolean;
|
|
38
|
+
}): PrReviewCycleArtifacts;
|
|
39
|
+
export declare function runStrictPrMergeGate(input: StrictPrMergeGateInput): Promise<StrictPrMergeGateResult>;
|