Initial open source GitHub PR review bot

This commit is contained in:
lezi-fun committed 2026-05-12 21:23:43 +08:00
commit c6bf0346b4
23 files changed
+4577

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
export type PullRequestRef = {
owner: string;
repo: string;
pullNumber: number;
installationId: number;
};
export type PullRequestFile = {
filename: string;
patch?: string;
status: string;
additions: number;
deletions: number;
};
export type ReviewFinding = {
path: string;
line: number;
severity: "blocking" | "suggestion";
title: string;
body: string;
};
export type ReviewDecision = {
safeToMerge: boolean;
summary: string;
findings: ReviewFinding[];
};
export type DiffPosition = {
path: string;
line: number;
side: "RIGHT";
};