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
View File
@@ -0,0 +1,9 @@
import assert from "node:assert/strict";
import test from "node:test";
import { reviewCacheKeyPrefix } from "../src/review/cache.js";
test("review cache keys are isolated by repository and pull request", () => {
assert.equal(reviewCacheKeyPrefix("12345", 17), "ghbot-review-12345-pr-17-");
assert.notEqual(reviewCacheKeyPrefix("12345", 17), reviewCacheKeyPrefix("12345", 18));
assert.notEqual(reviewCacheKeyPrefix("12345", 17), reviewCacheKeyPrefix("67890", 17));
});