{"modulePath":"github.com/Rememorio/codog","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubcomments\n\nPackage githubcomments reads GitHub pull request comments into stable reports.\n\nPackage githubcomments fetches and renders GitHub pull request comments via gh.\n\n## Functions\n\n```go\nfunc RenderText(w io.Writer, report Report)\n```\nRenderText writes a human-readable pull request comment report.\n\n## Types\n\n```go\ntype IssueComment struct {\n\tID        int64  `json:\"id\"`\n\tAuthor    string `json:\"author\"`\n\tBody      string `json:\"body\"`\n\tCreatedAt string `json:\"created_at,omitempty\"`\n\tURL       string `json:\"url,omitempty\"`\n}\n```\nIssueComment describes a top-level pull request issue comment.\n\n```go\ntype Options struct {\n\tPR     string\n\tRepo   string\n\tGHPath string\n}\n```\nOptions configures a pull request comment fetch.\n\n```go\ntype Report struct {\n\tKind           string          `json:\"kind\"`\n\tStatus         string          `json:\"status\"`\n\tRepository     string          `json:\"repository\"`\n\tNumber         int             `json:\"number\"`\n\tURL            string          `json:\"url,omitempty\"`\n\tTotal          int             `json:\"total\"`\n\tIssueComments  []IssueComment  `json:\"issue_comments,omitempty\"`\n\tReviewComments []ReviewComment `json:\"review_comments,omitempty\"`\n}\n```\nReport summarizes issue and review comments for a pull request.\n\n```go\nfunc BuildReport(viewJSON []byte, issueJSON []byte, reviewJSON []byte, repoOverride string) (Report, error)\n```\nBuildReport parses GitHub CLI and REST API JSON into a stable comment report.\n\n```go\nfunc Fetch(ctx context.Context, opts Options) (Report, error)\n```\nFetch retrieves pull request comments using the GitHub CLI.\n\n```go\ntype ReviewComment struct {\n\tID           int64  `json:\"id\"`\n\tAuthor       string `json:\"author\"`\n\tBody         string `json:\"body\"`\n\tPath         string `json:\"path,omitempty\"`\n\tLine         int    `json:\"line,omitempty\"`\n\tOriginalLine int    `json:\"original_line,omitempty\"`\n\tDiffHunk     string `json:\"diff_hunk,omitempty\"`\n\tInReplyToID  int64  `json:\"in_reply_to_id,omitempty\"`\n\tCreatedAt    string `json:\"created_at,omitempty\"`\n\tURL          string `json:\"url,omitempty\"`\n}\n```\nReviewComment describes an inline pull request review comment.\n\n","path":"github.com/Rememorio/codog/internal/githubcomments","name":"githubcomments","synopsis":"Package githubcomments reads GitHub pull request comments into stable reports.","isRedistributable":true}
