Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type BranchProvider ¶
type BranchProvider interface {
GetBranchName(issue Issue, repo Repository) (branchName string, err error)
}
type Config ¶
type Config map[string]IssueTrackerConfig
type ConfigProvider ¶
type ConfigProvider interface { GetConfigByIssueTracker(issueTracker string) (IssueTrackerConfig, error) GetConfigFilePath() string SaveConfigByIssueTracker(issueTracker string, config IssueTrackerConfig) error }
type GitProvider ¶
type GitProvider interface { BranchExists(branch string) bool FetchBranchFromOrigin(branch string) (err error) CheckoutNewBranchFromOrigin(branch string, base string) (err error) GetCurrentBranch() (branchName string, err error) FindBranch(substring string) (branch string, exists bool) CheckoutBranch(branch string) (err error) GetCommitsToPush(branch string) (commits []string, err error) RemoteBranchExists(branch string) (exists bool) CommitEmpty(message string) (err error) PushBranch(branch string) (err error) }
type Issue ¶
type Issue interface { FormatID() string ID() string Title() string Body() string URL() string TypeLabel() string TrackerType() IssueTrackerType Type() issue_types.IssueType }
type IssueTrackerConfig ¶
type IssueTrackerConfig struct {
Auth AuthConfig `json:"auth,omitempty"`
}
type IssueTrackerProvider ¶
type IssueTrackerType ¶
type IssueTrackerType string
const ( IssueTrackerTypeGithub IssueTrackerType = "github" IssueTrackerTypeJira IssueTrackerType = "jira" )
func (IssueTrackerType) String ¶
func (i IssueTrackerType) String() string
type PullRequest ¶
type PullRequestProvider ¶
type Repository ¶
type RepositoryProvider ¶
type RepositoryProvider interface {
GetRepository() (repo *Repository, err error)
}
type UserInteractionProvider ¶
type UserInteractionProvider interface { AskUserForConfirmation(msg string, defaultAnswer bool) (answer bool, err error) SelectOrInputPrompt(message string, validValues []string, variable *string, required bool) error SelectOrInput(name string, validValues []string, variable *string, required bool) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.