jira

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ProjectMustExist(projectKey string) error
	StatusMustExist(statusName string) error
	FindIssueForKey(issueKey string) (Issue, error)
	FindIssuesForPackage(packageName string) ([]Issue, error)
	UpdateIssueSummary(issueRef IssueRef, newSummary string) error
	CreateIssue(issue Issue) (IssueRef, error)
	CreateIssueComment(issueRef IssueRef, newComment string) error
}

func New

func New(cfg *config.Jira) (Client, error)

type Issue

type Issue struct {
	ID          string
	Key         string
	Summary     string
	Description string
	Labels      []string
	ProjectKey  string
	TypeName    string

	PackageName        string
	PackageNameFieldID uint
}

func (Issue) IssueRef

func (i Issue) IssueRef() IssueRef

type IssueRef

type IssueRef struct {
	ID  string
	Key string
}

Jump to

Keyboard shortcuts

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