Add code-review-bot module: Gitea webhook, diff chunking and a Spring AI reviewer with cost controls
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RjfyTgmERTWLqzafu34Cth
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
chunks: 1, skipped files: 1
|
||||
file src/Login.java added lines [2, 3, 5]
|
||||
1| class Login {
|
||||
2| + String password = "hunter2";
|
||||
3| + // TODO move to vault
|
||||
4| void run() {
|
||||
5| + System.out.println("login");
|
||||
6| }
|
||||
7| }
|
||||
@@ -0,0 +1,5 @@
|
||||
chunk 1: 199 chars, lines 1..13
|
||||
chunk 2: 190 chars, lines 14..23
|
||||
chunk 3: 190 chars, lines 24..33
|
||||
chunk 4: 152 chars, lines 34..40
|
||||
chunks: 4
|
||||
@@ -0,0 +1,3 @@
|
||||
comment src/Login.java:2 [MAJOR] This looks like a hard-coded credential.
|
||||
comment src/Login.java:5 [MINOR] Use a logger instead of System.out.
|
||||
summary: Summary[chunksTotal=1, skippedFiles=1, skippedByBudget=0, cacheHits=0, modelCalls=1, commentsPosted=2, droppedBadLine=0, droppedNits=1, approxInputChars=455]
|
||||
@@ -0,0 +1,3 @@
|
||||
posted line 2
|
||||
posted line 5
|
||||
dropped because the line is not an added line: 2
|
||||
@@ -0,0 +1,3 @@
|
||||
first review: model calls 3, cache hits 0
|
||||
same diff again: model calls 0, cache hits 3
|
||||
one file edited: model calls 1, cache hits 2
|
||||
@@ -0,0 +1,4 @@
|
||||
chunks in diff: 8
|
||||
model calls: 3
|
||||
chunks skipped by the cap: 5
|
||||
approximate characters sent: 993
|
||||
@@ -0,0 +1,6 @@
|
||||
wrong signature -> 401
|
||||
no signature -> 401
|
||||
comment event -> 200 ignored: pull_request_comment/synchronized
|
||||
valid sync event -> 202 queued asmhatre/demo#7
|
||||
jobs queued: 1, reviews posted before the job runs: 0
|
||||
reviews posted after the job runs: 1
|
||||
Reference in New Issue
Block a user