issuable

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIncidentCmd added in v1.29.0

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