Help us shape the future of Go! Take the 2026 Go Developer Survey

issues

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

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

func NewAssignCmd(prompt cmdkit.Prompt) *cobra.Command

NewAssignCmd builds `workflow assign <issue> <username>`.

func NewCommentCmd

func NewCommentCmd(prompt cmdkit.Prompt) *cobra.Command

NewCommentCmd builds `workflow comment <issue>`.

func NewIssueCmd

func NewIssueCmd() *cobra.Command

NewIssueCmd builds `workflow issue <issue>`.

func NewIssuesCmd

func NewIssuesCmd() *cobra.Command

NewIssuesCmd builds `workflow issues`.

func NewTransitionCmd

func NewTransitionCmd(prompt cmdkit.Prompt) *cobra.Command

NewTransitionCmd builds `workflow transition <issue> <status>`.

func NewWorklogCmd

func NewWorklogCmd(prompt cmdkit.Prompt) *cobra.Command

NewWorklogCmd builds `workflow worklog <issue> <duration>`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL