Migrate review automation to OpenCode

This commit is contained in:
lezi-fun committed 2026-08-13 10:55:00 +08:00
1 parent 27db22cd78
commit 8aaecb4dc7
21 files changed
+2703 -713

No files matched your search

+9 -7
View File
@@ -15,18 +15,20 @@ export type PullRequestFile = {
export type ReviewFinding = {
path: string;
line: number;
severity: "blocking" | "suggestion";
title: string;
body: string;
};
export type ReviewDecision = {
safeToMerge: boolean;
shouldClosePullRequest: boolean;
closeReason: string;
summary: string;
fixTips: string[];
findings: ReviewFinding[];
review: ReviewFinding[];
change: ReviewFinding[];
comment: string;
result: {
canMerge: boolean;
summary: string;
shouldClosePullRequest: boolean;
closeReason: string;
};
};
export type ReviewMode = "strict" | "lenient";