pm

package
v0.0.0-...-cdba371 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusToDo       = Status("to-do")
	StatusInProgress = Status("in-progress")
	StatusInReview   = Status("in-review")
	StatusDone       = Status("done")
	StatusUnknown    = Status("unknown")
)

Functions

This section is empty.

Types

type Issue

type Issue struct {
	ID     string
	Title  string
	Status Status
}

type JiraProvider

type JiraProvider struct {
	// contains filtered or unexported fields
}

func NewJira

func NewJira() *JiraProvider

func (*JiraProvider) GetIssue

func (j *JiraProvider) GetIssue(issueID string) (*Issue, error)

func (*JiraProvider) GetMyIssues

func (j *JiraProvider) GetMyIssues() ([]*Issue, error)

func (*JiraProvider) SetStatus

func (j *JiraProvider) SetStatus(issueKey, status string) error

type Provider

type Provider interface {
	SetStatus(issueID, status string) error
	GetIssue(issueID string) (*Issue, error)
	GetMyIssues() ([]*Issue, error)
}

func GetProvider

func GetProvider() (Provider, error)

type Status

type Status string

Jump to

Keyboard shortcuts

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