github

package
v0.0.0-...-360a601 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIdIsPullRequestNumber = func(identifier string) error {
	return fmt.Errorf("given identifier %s is a Pull Request number", identifier)
}
View Source
var ErrIssueNotFound = fmt.Errorf("the issue was not found")

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	config.Github
}

type Github

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

func New

func New(cfg Configuration) (*Github, error)

New returns a new Github issue tracker with the given configuration

func (*Github) CheckConfiguration

func (g *Github) CheckConfiguration() (err error)

func (*Github) GetIssue

func (g *Github) GetIssue(identifier string) (issue domain.Issue, err error)

func (*Github) IdentifyIssue

func (g *Github) IdentifyIssue(identifier string) bool

func (*Github) ParseRawIssueId

func (g *Github) ParseRawIssueId(identifier string) (issueId string)

type Issue

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

func (Issue) Body

func (i Issue) Body() string

func (Issue) FormatID

func (i Issue) FormatID() string

func (Issue) ID

func (i Issue) ID() string

func (Issue) Title

func (i Issue) Title() string

func (Issue) TrackerType

func (i Issue) TrackerType() domain.IssueTrackerType

func (Issue) Type

func (i Issue) Type() issue_types.IssueType

func (Issue) TypeLabel

func (i Issue) TypeLabel() string

func (Issue) URL

func (i Issue) URL() string

type Label

type Label struct {
	Id          int
	Name        string
	Description string
	Color       string
}

Jump to

Keyboard shortcuts

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