working

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Merge = "Merge"
View Source
const Release = "Release"

Variables

This section is empty.

Functions

func ChooseDestBranch

func ChooseDestBranch(kind, version string) (ans string)

func ChooseIssueKeys

func ChooseIssueKeys(iss []listing.Issue, branch string) (ans []string)

func ChooseReleaseVersion

func ChooseReleaseVersion(version string) (ans string)

func ChooseWorkMode

func ChooseWorkMode() (ans string)

func ConfirmRelease

func ConfirmRelease(question string) (ans bool)

func ToArray

func ToArray(data []listing.Issue, releaseBranch string) (s []string)

Types

type Branch

type Branch struct {
	bitbucket.RepositoryBranch
}

type PullRequestQueue

type PullRequestQueue []*PullRequestTask

func ChooseIssueBranches

func ChooseIssueBranches(iss []listing.Issue, releaseBranch string) (bl PullRequestQueue)

func ToBranchLite

func ToBranchLite(lists []string) (bl PullRequestQueue)

type PullRequestTask

type PullRequestTask struct {
	Title       string
	Source      listing.BranchLite
	Destination listing.BranchLite
}

type Repository

type Repository interface {

	// GetIssue returns the issue with given issue keys.
	CreatePullRequest(request PullRequestTask) (interface{}, error)

	CreateBranch(owner, repository, name, source string) (Branch, error)

	GetBranch(owner, repository, name string) (Branch, error)
}

Repository provides access to the beer and review storage.

type Service

type Service interface {
	CreatePullRequest(request PullRequestTask) (interface{}, error)
	CreateBranch(owner, repository, name, source string) (Branch, error)
	GetBranch(owner, repository, name string) (Branch, error)
	BranchExist(owner, repository, name string) bool
}

Service provides beer and review listing operations.

func NewService

func NewService(r Repository) Service

NewService creates a listing service with the necessary dependencies

Jump to

Keyboard shortcuts

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