Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxGraphQLResults = 100 MaxCommentLength = 65536 DefaultPageSize = 30 )
Constants for API limits and defaults
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comment ¶
type Comment struct {
ID int `json:"id"`
Author string `json:"author"`
Body string `json:"body"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
HTMLURL string `json:"html_url"`
// For line-specific comments
Path string `json:"path,omitempty"`
Line int `json:"line,omitempty"`
StartLine int `json:"start_line,omitempty"`
DiffHunk string `json:"diff_hunk,omitempty"`
// Comment type
Type string `json:"type"` // "issue" or "review"
// Resolution status (for review comments)
State string `json:"state,omitempty"` // "pending", "submitted", etc.
}
Click to show internal directories.
Click to hide internal directories.