Documentation
¶
Overview ¶
Package issues is the commands over the issue tracker, Jira or the forge's issues: `issues` and `issue`, which read, and `transition`, `assign`, `worklog` and `comment`, which write an issue once its preview is confirmed.
Index ¶
- Variables
- func NewAssignCmd(prompt cmdkit.Prompt) *cobra.Command
- func NewCommentCmd(prompt cmdkit.Prompt) *cobra.Command
- func NewIssueCmd() *cobra.Command
- func NewIssuesCmd() *cobra.Command
- func NewTransitionCmd(prompt cmdkit.Prompt) *cobra.Command
- func NewWorklogCmd(prompt cmdkit.Prompt) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDurationBlank refuses a worklog that says nothing of how long. ErrDurationBlank = errors.New("logging work needs a duration, such as 2h or 30m") // ErrWorklogOnForge refuses a worklog on a forge issue, which keeps none. ErrWorklogOnForge = errors.New("a forge issue keeps no worklog; log work on a Jira issue") // ErrWorklogNeedsJira refuses a worklog where the forge's issues are the // whole tracker. ErrWorklogNeedsJira = errors.New("logging work needs Jira; set jira.base_url") )
Why work cannot be logged.
View Source
var ErrAssigneeBlank = errors.New("an assignee needs a username")
ErrAssigneeBlank refuses an assignment that names no one.
View Source
var ErrCommentBlank = errors.New("a comment needs text on standard input")
ErrCommentBlank refuses a comment with no text: standard input held nothing but white space.
View Source
var ErrStatusBlank = errors.New("a transition needs a status to move to")
ErrStatusBlank refuses a move that names no status to move to.
Functions ¶
func NewAssignCmd ¶
NewAssignCmd builds `workflow assign <issue> <username>`.
func NewCommentCmd ¶
NewCommentCmd builds `workflow comment <issue>`.
func NewTransitionCmd ¶
NewTransitionCmd builds `workflow transition <issue> <status>`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.