issuekey

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxExpansion = 1000

Variables

This section is empty.

Functions

func IsExpression added in v0.3.0

func IsExpression(s string) bool

IsExpression reports whether s begins like an issue-key expression (a single key, a range, or a comma list) rather than free text such as a status name. It only checks the leading token against the key pattern — it does not validate a range end or list members — so it stays cheap and never expands a range. ParseExpressions still fully validates the keys afterwards. Callers use it to tell an issue key from a status name in mixed argument lists like `transition KEY "In Progress"`.

func ParseExpressions

func ParseExpressions(inputs []string, opts Options) ([]string, error)

ParseExpressions expands issue-key expressions into canonical Jira keys. Supported forms are single keys, comma lists, and inclusive ranges using ":" or ".." with either a numeric end or a full issue key end.

Types

type ExpansionLimitError added in v0.2.0

type ExpansionLimitError struct {
	Max int
}

ExpansionLimitError reports a locally-enforced issue-key expansion limit.

func (*ExpansionLimitError) Code added in v0.10.0

func (e *ExpansionLimitError) Code() errtax.Code

Code classifies the failure under issue_key_expansion_limit.

func (*ExpansionLimitError) Error added in v0.2.0

func (e *ExpansionLimitError) Error() string

type Options

type Options struct {
	MaxExpansion int
}

Jump to

Keyboard shortcuts

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