service

package
v0.0.0-...-a35a437 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIssuePattern string = `([A-Z]{1,10}-[0-9]+)`
View Source
const MultiFieldSeparator string = ", "
View Source
const NilAsString string = "<nil>"

Variables

This section is empty.

Functions

func ScanRelatedCommits

func ScanRelatedCommits(client *bitrise.Client, appSlug string, buildSlug string, workflow string, branch string) ([]string, error)

Types

type GitWorker

type GitWorker struct {
	Repo         *git.Repository
	Branch       string
	Remote       string
	MergeCommits []*git.Oid
	IssuePattern string
}

func GitLoad

func GitLoad(url string, branch string, remote string) (*GitWorker, error)

func GitOpen

func GitOpen(path string, branch string, issuePattern string, commits []string) (*GitWorker, error)

func (*GitWorker) LoadCommits

func (worker *GitWorker) LoadCommits() []*git.Commit

func (*GitWorker) ScanIssues

func (worker *GitWorker) ScanIssues() []string

type JIRAWorker

type JIRAWorker struct {
	Auth          jira.BasicAuthTransport
	Client        *jira.Client
	CustomFieldID int
}

func NewJIRAWorker

func NewJIRAWorker(baseURL string, username string, password string, customFieldID int) (*JIRAWorker, error)

func (*JIRAWorker) UpdateBuildForIssues

func (worker *JIRAWorker) UpdateBuildForIssues(issueKeys []string, build config.Build)

func (*JIRAWorker) UpdateBuildForIssuesMultiField

func (worker *JIRAWorker) UpdateBuildForIssuesMultiField(issueKeys []string, build config.Build)

Jump to

Keyboard shortcuts

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