issue

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package issue implements the `bitbottle issue` command group. Issues are a Bitbucket Cloud feature gated by the IssueClient optional interface; invocations against Server/DC surface a typed ErrUnsupportedOnHost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueStateColor

func IssueStateColor(ios *iostreams.IOStreams) func(string) string

IssueStateColor maps Bitbucket Cloud issue states to colours. Active (open / new) renders green; closed states (resolved / closed) magenta; "won't fix" / "invalid" / "duplicate" red — terminal and negative; "on hold" yellow because it's neither active nor done.

Exported so a future `issue view` formatter (or external tooling) can share the mapping. Unknown states pass through uncoloured.

func NewCmdIssue

func NewCmdIssue(f *factory.Factory) *cobra.Command

func NewCmdIssueClose

func NewCmdIssueClose(f *factory.Factory) *cobra.Command

func NewCmdIssueCreate

func NewCmdIssueCreate(f *factory.Factory) *cobra.Command

func NewCmdIssueList

func NewCmdIssueList(f *factory.Factory) *cobra.Command

func NewCmdIssueView

func NewCmdIssueView(f *factory.Factory) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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