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

issuable

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIncidentCmd

func ValidateIncidentCmd(cmd IssueType, subcmd string, issue *gitlab.Issue) (bool, string)

ValidateIncidentCmd returns an error when incident command is used with non-incident's IDs.

Issues and incidents are the same kind, but with different issueType.

For example: `issue view` can view issues of all types including incidents `incident view` on the other hand, should view only incidents, and treat all other issue types as not found

Types

type IssueType

type IssueType string
const (
	TypeIssue    IssueType = "issue"
	TypeIncident IssueType = "incident"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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