Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2026 Changes in this version + const ReviewFooter + type Client struct + func NewClient(gh *github.Client) *Client + func NewClientFromAppConfig(ctx context.Context, cfg *auth.AppConfig) (*Client, error) + func NewClientFromToken(ctx context.Context, token string) *Client + func (c *Client) Approve(ctx context.Context, owner, repo string, number int, body string) (*ReviewResult, error) + func (c *Client) Comment(ctx context.Context, owner, repo string, number int, body string) (*ReviewResult, error) + func (c *Client) CreateComment(ctx context.Context, input *CommentInput) (*CommentResult, error) + func (c *Client) CreateLineComment(ctx context.Context, input *LineCommentInput) (*CommentResult, error) + func (c *Client) CreateReview(ctx context.Context, input *ReviewInput) (*ReviewResult, error) + func (c *Client) GetPR(ctx context.Context, owner, repo string, number int) (*PRInfo, error) + func (c *Client) GetPRDiff(ctx context.Context, owner, repo string, number int) (string, error) + func (c *Client) ListOpenPRs(ctx context.Context, owner, repo string) ([]PRSummary, error) + func (c *Client) RequestChanges(ctx context.Context, owner, repo string, number int, body string) (*ReviewResult, error) + type CommentInput struct + Body string + Owner string + PRNumber int + Repo string + type CommentResult struct + HTMLURL string + ID int64 + type LineCommentInput struct + Body string + CommitID string + Line int + Owner string + PRNumber int + Path string + Repo string + type PRInfo struct + Author string + Base string + Body string + Commits int + HTMLURL string + Head string + Number int + State string + Title string + type PRSummary struct + Author string + HTMLURL string + Head string + Number int + Title string + type ReviewEvent string + const EventApprove + const EventComment + const EventRequestChanges + type ReviewInput struct + Body string + Event ReviewEvent + Owner string + PRNumber int + Repo string + type ReviewResult struct + HTMLURL string + ID int64