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 reviews(String repo, int pull); List 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 comments); }