Documentation
¶
Overview ¶
Package githubcomments reads GitHub pull request comments into stable reports.
Package githubcomments fetches and renders GitHub pull request comments via gh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderText ¶
RenderText writes a human-readable pull request comment report.
Types ¶
type IssueComment ¶
type IssueComment struct {
ID int64 `json:"id"`
Author string `json:"author"`
Body string `json:"body"`
CreatedAt string `json:"created_at,omitempty"`
URL string `json:"url,omitempty"`
}
IssueComment describes a top-level pull request issue comment.
type Report ¶
type Report struct {
Kind string `json:"kind"`
Status string `json:"status"`
Repository string `json:"repository"`
Number int `json:"number"`
URL string `json:"url,omitempty"`
Total int `json:"total"`
IssueComments []IssueComment `json:"issue_comments,omitempty"`
ReviewComments []ReviewComment `json:"review_comments,omitempty"`
}
Report summarizes issue and review comments for a pull request.
type ReviewComment ¶
type ReviewComment struct {
ID int64 `json:"id"`
Author string `json:"author"`
Body string `json:"body"`
Path string `json:"path,omitempty"`
Line int `json:"line,omitempty"`
OriginalLine int `json:"original_line,omitempty"`
DiffHunk string `json:"diff_hunk,omitempty"`
InReplyToID int64 `json:"in_reply_to_id,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
URL string `json:"url,omitempty"`
}
ReviewComment describes an inline pull request review comment.
Click to show internal directories.
Click to hide internal directories.