Add configurable review modes and conflict recovery

This commit is contained in:
lezi-fun committed 2026-08-13 21:54:50 +08:00
1 parent 8c4e866765
commit f9c632e6ab
21 files changed
+1035 -230

No files matched your search

+3 -3
View File
@@ -16,7 +16,7 @@ export function formatReviewBody(
formatReviewStateMarker(mode, disposition, decision.review.length, decision.change.length),
`## Automated review`,
"",
`Mode: ${mode === "lenient" ? "lenient" : "strict"}`,
`Mode: ${mode}`,
"",
`### Comment`,
"",
@@ -37,8 +37,8 @@ export function formatReviewBody(
`Review notes: ${decision.review.length}`
];
if (mode === "strict" && decision.change.length > 0 && !decision.result.shouldClosePullRequest) {
lines.push("", "Need a narrower pass? Comment `/lenient-check` on this PR.");
if (decision.change.length > 0 && !decision.result.shouldClosePullRequest) {
lines.push("", "After updating the pull request, comment `/recheck` to run the review again.");
}
if (unpostedFindings.length > 0) {