issueref

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package issueref parses the ways a caller can name a Jira issue: its key, or a browser URL the key can be read from.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	Key  string
	Host string
}

Ref is a parsed issue reference. Host is empty when the caller passed a bare key, in which case there is nothing to select a profile from.

func Parse

func Parse(arg string) (Ref, error)

Parse accepts an issue key or an issue URL. A URL is read in this order: a selectedIssue query parameter, then /browse/<KEY>, then the last segment of a path under /jira/. selectedIssue comes first because it names the issue open in a panel over whatever page the path itself shows.

Jump to

Keyboard shortcuts

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