Add R2 persistence and manual conflict repair

This commit is contained in:
lezi-fun committed 2026-08-13 22:42:43 +08:00
1 parent 2d50da41cd
commit e8ee698fa4
19 files changed
+1258 -62

No files matched your search

+8 -1
View File
@@ -11,7 +11,7 @@ import {
parseReviewStateMarker
} from "../src/review/policy.js";
import { config } from "../src/config.js";
import { isRecheckComment } from "../src/review/processor.js";
import { isConflictComment, isRecheckComment } from "../src/review/processor.js";
const cleanDecision: ReviewDecision = {
review: [],
@@ -123,6 +123,13 @@ test("only the exact recheck command triggers a manual review", () => {
assert.equal(isRecheckComment("/recheck something"), false);
});
test("only the exact conflict command triggers manual conflict resolution", () => {
assert.equal(isConflictComment("/conflict"), true);
assert.equal(isConflictComment(" /conflict\n"), true);
assert.equal(isConflictComment("/conflicts"), false);
assert.equal(isConflictComment("/conflict now"), false);
});
test("only the latest decisive review per user can approve the current head", () => {
assert.deepEqual(
approvedLoginsForHead(