Documentation
¶
Overview ¶
Package comment implements the PR comment command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentOptions ¶
type CommentOptions struct {
IO *iostreams.IOStreams
HttpClient func() (*http.Client, error)
BaseRepo func() (string, error)
// Arguments
Repository string
Number int
// Flags
Body string
BodyFile string
Path string // File path for inline comment
Position int // Diff position for inline comment
JSON bool
}
type CommentResult ¶ added in v0.5.0
type CommentResult struct {
ID string `json:"id"`
URL string `json:"url"`
Author string `json:"author,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
Path string `json:"path,omitempty"`
Position int `json:"position,omitempty"`
Body string `json:"body"`
}
CommentResult represents the JSON output for pr comment
Source Files
¶
- comment.go
Click to show internal directories.
Click to hide internal directories.