Add pr-reviewer module: Gitea webhooks, Spring AI structured output, quote-checked inline comments, de-duplication across pushes and live tests against Gitea 1.27.3 on Spring AI 2.1.0

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
Claude
2026-12-04 07:49:36 +05:30
parent 38c9ca8452
commit 8fa3c5d682
74 changed files with 4794 additions and 0 deletions
@@ -0,0 +1,26 @@
package com.ankurm.prreviewer;
import java.util.List;
/** Everything the reviewer needs from a Git server. */
public interface GitHost {
record Review(long id, String state, String author) {}
record Comment(String author, String body) {}
record InlineComment(String path, int line, String body) {}
/** Head commit of the pull request as the server sees it now. */
String headSha(String repo, int pull);
String diff(String repo, int pull);
List<Review> reviews(String repo, int pull);
List<Comment> comments(String repo, int pull, long reviewId);
void deleteReview(String repo, int pull, long reviewId);
long createReview(String repo, int pull, String commitSha, String body, List<InlineComment> comments);
}