Documentation
¶
Index ¶
- Constants
- func ChooseDestBranch(kind, version string) (ans string)
- func ChooseIssueKeys(iss []listing.Issue, branch string) (ans []string)
- func ChooseReleaseVersion(version string) (ans string)
- func ChooseWorkMode() (ans string)
- func ConfirmRelease(question string) (ans bool)
- func ToArray(data []listing.Issue, releaseBranch string) (s []string)
- type Branch
- type PullRequestQueue
- type PullRequestTask
- type Repository
- type Service
Constants ¶
View Source
const Merge = "Merge"
View Source
const Release = "Release"
Variables ¶
This section is empty.
Functions ¶
func ChooseDestBranch ¶
func ChooseReleaseVersion ¶
func ChooseWorkMode ¶
func ChooseWorkMode() (ans string)
func ConfirmRelease ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.