{"modulePath":"github.com/igcodinap/manque-ai","version":"v1.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Constants\n\n```go\nconst BotCommentMarker = \"\u003c!-- manque-ai-bot --\u003e\"\n```\nBotCommentMarker is used to identify comments created by this bot\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(token, apiURL string) *Client\n```\n\n```go\nfunc (c *Client) CreateComment(owner, repo string, number int, body string) error\n```\n\n```go\nfunc (c *Client) CreateOrUpdateComment(owner, repo string, number int, body string) error\n```\nCreateOrUpdateComment creates a new comment or updates an existing bot comment\n\n```go\nfunc (c *Client) CreateReview(owner, repo string, number int, comments []*github.DraftReviewComment, body *string, action string) error\n```\n\n```go\nfunc (c *Client) CreateReviewWithOptions(owner, repo string, number int, comments []*github.DraftReviewComment, body *string, action string, opts CreateReviewOptions) error\n```\n\n```go\nfunc (c *Client) FindBotComment(owner, repo string, number int) (*github.IssueComment, error)\n```\nFindBotComment finds an existing comment created by this bot\n\n```go\nfunc (c *Client) GetCommentThread(owner, repo string, number int, commentID int64) ([]ConversationMessage, error)\n```\nGetCommentThread gets the conversation thread for a review comment\n\n```go\nfunc (c *Client) GetExistingCommentsByLocation(owner, repo string, number int) (map[string]*ExistingComment, error)\n```\nGetExistingCommentsByLocation returns existing comments indexed by file:line\n\n```go\nfunc (c *Client) GetIssueCommentThread(owner, repo string, number int) ([]ConversationMessage, error)\n```\nGetIssueCommentThread gets conversation thread from issue comments\n\n```go\nfunc (c *Client) GetPR(owner, repo string, number int) (*PRInfo, error)\n```\n\n```go\nfunc (c *Client) GetPRFromEvent(eventPath string) (*PRInfo, error)\n```\n\n```go\nfunc (c *Client) GetPRFromURL(url string) (*PRInfo, error)\n```\n\n```go\nfunc (c *Client) ListReviewComments(owner, repo string, number int) ([]*github.PullRequestComment, error)\n```\nListReviewComments lists all review comments on a pull request\n\n```go\nfunc (c *Client) ReplyToComment(owner, repo string, number int, commentID int64, body string) error\n```\nReplyToComment adds a reply to an existing review comment\n\n```go\nfunc (c *Client) UpdateComment(owner, repo string, commentID int64, body string) error\n```\nUpdateComment updates an existing review comment\n\n```go\nfunc (c *Client) UpdatePR(owner, repo string, number int, title, body *string) error\n```\n\n```go\ntype ConversationMessage struct {\n\tAuthor    string\n\tBody      string\n\tIsBot     bool\n\tCreatedAt string\n\tID        int64\n}\n```\nConversationMessage represents a single message in a conversation thread\n\n```go\ntype CreateReviewOptions struct {\n\tIsIncremental bool // If true, reply to existing comments instead of creating new ones\n}\n```\nCreateReviewOptions configures the review creation behavior\n\n```go\ntype ExistingComment struct {\n\tID        int64\n\tPath      string\n\tStartLine int\n\tEndLine   int\n\tBody      string\n\tIsBot     bool // True if created by manque-ai\n}\n```\nExistingComment represents a comment that already exists on a PR\n\n```go\ntype GitHubEvent struct {\n\tPullRequest struct {\n\t\tNumber int    `json:\"number\"`\n\t\tTitle  string `json:\"title\"`\n\t\tBody   string `json:\"body\"`\n\t\tHead   struct {\n\t\t\tSHA string `json:\"sha\"`\n\t\t} `json:\"head\"`\n\t} `json:\"pull_request\"`\n\tRepository struct {\n\t\tFullName string `json:\"full_name\"`\n\t\tName     string `json:\"name\"`\n\t\tOwner    struct {\n\t\t\tLogin string `json:\"login\"`\n\t\t} `json:\"owner\"`\n\t} `json:\"repository\"`\n}\n```\n\n```go\ntype PRInfo struct {\n\tNumber      int\n\tTitle       string\n\tDescription string\n\tRepository  string\n\tOwner       string\n\tDiff        string\n\tHeadSHA     string\n}\n```\n\n","path":"github.com/igcodinap/manque-ai/pkg/github","name":"github","synopsis":"","isRedistributable":true}
