Versions in this module Expand all Collapse all v0 v0.1.1 Aug 1, 2025 v0.1.0 Aug 1, 2025 Changes in this version + type Comment struct + Body string + CreatedAt time.Time + ID int + Line int + Path string + Position int + Type string + UpdatedAt time.Time + User User + type DiffFile struct + Filename string + Lines map[int]bool + type GitHubAPI interface + AddReaction func(owner, repo string, commentID int, reaction string) error + AddReviewComment func(owner, repo string, pr int, comment ReviewCommentInput) error + CreateIssueComment func(owner, repo string, prNumber int, body string) (*Comment, error) + CreateReview func(owner, repo string, pr int, review ReviewInput) error + CreateReviewCommentReply func(owner, repo string, commentID int, body string) (*Comment, error) + EditComment func(owner, repo string, commentID int, body string) error + FetchPRDiff func(owner, repo string, pr int) (*PullRequestDiff, error) + FindReviewThreadForComment func(owner, repo string, prNumber, commentID int) (string, error) + GetPRDetails func(owner, repo string, pr int) (map[string]interface{}, error) + ListIssueComments func(owner, repo string, prNumber int) ([]Comment, error) + ListReviewComments func(owner, repo string, prNumber int) ([]Comment, error) + RemoveReaction func(owner, repo string, commentID int, reaction string) error + ResolveReviewThread func(threadID string) error + type MockClient struct + CreateCommentError error + CreatedComment *Comment + IssueComments []Comment + ListIssueCommentsError error + ListReviewCommentsError error + ResolveThreadError error + ResolvedThread string + ReviewComments []Comment + func NewMockClient() *MockClient + func (m *MockClient) AddReaction(owner, repo string, commentID int, reaction string) error + func (m *MockClient) AddReviewComment(owner, repo string, pr int, comment ReviewCommentInput) error + func (m *MockClient) CreateIssueComment(owner, repo string, prNumber int, body string) (*Comment, error) + func (m *MockClient) CreateReview(owner, repo string, pr int, review ReviewInput) error + func (m *MockClient) CreateReviewCommentReply(owner, repo string, commentID int, body string) (*Comment, error) + func (m *MockClient) EditComment(owner, repo string, commentID int, body string) error + func (m *MockClient) FetchPRDiff(owner, repo string, pr int) (*PullRequestDiff, error) + func (m *MockClient) FindReviewThreadForComment(owner, repo string, prNumber, commentID int) (string, error) + func (m *MockClient) GetPRDetails(owner, repo string, pr int) (map[string]interface{}, error) + func (m *MockClient) ListIssueComments(owner, repo string, prNumber int) ([]Comment, error) + func (m *MockClient) ListReviewComments(owner, repo string, prNumber int) ([]Comment, error) + func (m *MockClient) RemoveReaction(owner, repo string, commentID int, reaction string) error + func (m *MockClient) ResolveReviewThread(threadID string) error + type PullRequestDiff struct + Files []DiffFile + type RealClient struct + func NewRealClient() (*RealClient, error) + func (c *RealClient) AddReaction(owner, repo string, commentID int, reaction string) error + func (c *RealClient) AddReviewComment(owner, repo string, pr int, comment ReviewCommentInput) error + func (c *RealClient) CreateIssueComment(owner, repo string, prNumber int, body string) (*Comment, error) + func (c *RealClient) CreateReview(owner, repo string, pr int, review ReviewInput) error + func (c *RealClient) CreateReviewCommentReply(owner, repo string, commentID int, body string) (*Comment, error) + func (c *RealClient) EditComment(owner, repo string, commentID int, body string) error + func (c *RealClient) FetchPRDiff(owner, repo string, pr int) (*PullRequestDiff, error) + func (c *RealClient) FindReviewThreadForComment(owner, repo string, prNumber, commentID int) (string, error) + func (c *RealClient) GetPRDetails(owner, repo string, pr int) (map[string]interface{}, error) + func (c *RealClient) ListIssueComments(owner, repo string, prNumber int) ([]Comment, error) + func (c *RealClient) ListReviewComments(owner, repo string, prNumber int) ([]Comment, error) + func (c *RealClient) RemoveReaction(owner, repo string, commentID int, reaction string) error + func (c *RealClient) ResolveReviewThread(threadID string) error + type ReviewCommentInput struct + Body string + CommitID string + Line int + Path string + Side string + StartLine int + type ReviewInput struct + Body string + Comments []ReviewCommentInput + Event string + type User struct + AvatarURL string + ID int + Login string v0.1.0-beta.3 Aug 1, 2025 v0.1.0-beta.2 Aug 1, 2025 v0.1.0-beta.1 Aug 1, 2025