Documentation
¶
Overview ¶
Package label implements the issue label command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LabelOptions ¶
type LabelOptions struct {
IO *iostreams.IOStreams
HttpClient func() (*http.Client, error)
BaseRepo func() (string, error)
// Arguments
Repository string
Number int
// Flags
Add []string
AddSet bool // true when --add was explicitly passed (even if it parsed to empty)
Remove string
List bool
JSON bool
}
type LabelResult ¶ added in v0.5.0
type LabelResult struct {
Number int `json:"number"`
Owner string `json:"owner"`
Repo string `json:"repo"`
Action string `json:"action"`
Labels []string `json:"labels,omitempty"`
Label string `json:"label,omitempty"` // For remove/update action: the removed label
}
LabelResult represents the JSON output for issue label operations
Source Files
¶
- label.go
Click to show internal directories.
Click to hide internal directories.