Documentation ¶
Overview ¶
Package phlow contains all the business logic for the workflow commands
Index ¶
- func Auth(INIBlock string, authorization plugins.Authorization, ...)
- func AuthCaller()
- func Bootstrap()
- func Clean(conf *setting.ProjectSetting)
- func CleanCaller(ini string)
- func Deliver(conf *setting.ProjectSetting)
- func DeliverCaller()
- func FetchGH(conf *setting.ProjectSetting) ([]plugins.Stringer, error)
- func FetchJ(conf *setting.ProjectSetting) ([]plugins.Stringer, error)
- func GenerateMessage(branch string, smartCommitPrefix string, extractor plugins.IssueExtractor, ...) (string, error)
- func GetJIRAIssue(branch string) (string, error)
- func IssueCaller()
- func LaunchBrowser(link string, run executor.Runner)
- func LocalDeliver(conf *setting.ProjectSetting)
- func MakeAlias()
- func MakeAliasCaller()
- func OpenGitHub(issue string, conf *setting.ProjectSetting, extractor plugins.IssueExtractor, ...)
- func OpenJira(issue string, conf *setting.ProjectSetting, extractor plugins.IssueExtractor, ...)
- func PrintIssues(conf *setting.ProjectSetting, fetch Fetch)
- func ReadInput(messageToUser string, input io.Reader) string
- func ReadPassword(messageToUser string) string
- func Show(args []string)
- func UpNext(prefix string) (name string)
- func UpdateGithubIssue(issue string, conf *setting.ProjectSetting) (string, error)
- func UpdateJIRAIssue(key string, conf *setting.ProjectSetting) (string, error)
- func WebCaller(args []string)
- func WorkOn(keyOrID string, conf *setting.ProjectSetting, update WorkOnUpdate)
- func WorkOnCaller(keyOrID string)
- func WrapUp(smartCommitPrefix, force string, extractor plugins.IssueExtractor)
- func WrapUpCaller()
- type Fetch
- type WorkOnUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(INIBlock string, authorization plugins.Authorization, authentication plugins.Authentication, configUser string, configToken string, service string)
Auth ... Authenticates the desired service
func Bootstrap ¶
func Bootstrap()
Bootstrap ... Creates a new .gitconfig file with a default configuration
func Clean ¶ added in v1.0.0
func Clean(conf *setting.ProjectSetting)
Clean ... deletes all the delivered branches
func Deliver ¶
func Deliver(conf *setting.ProjectSetting)
Deliver ... Push a ready branch to the remote repository
func FetchGH ¶
func FetchGH(conf *setting.ProjectSetting) ([]plugins.Stringer, error)
FetchGH ... Fetch for github
func FetchJ ¶
func FetchJ(conf *setting.ProjectSetting) ([]plugins.Stringer, error)
FetchJ ... fetch for Jira
func GenerateMessage ¶
func GenerateMessage(branch string, smartCommitPrefix string, extractor plugins.IssueExtractor, forceMessage string) (string, error)
GenerateMessage ... generates a message from a branch with a given issue extractor
func LocalDeliver ¶
func LocalDeliver(conf *setting.ProjectSetting)
LocalDeliver ... Delivers locally and pushes the changes to the remote
func OpenGitHub ¶
func OpenGitHub(issue string, conf *setting.ProjectSetting, extractor plugins.IssueExtractor, runner executor.Runner)
OpenGitHub ... Try to display github issues
func OpenJira ¶
func OpenJira(issue string, conf *setting.ProjectSetting, extractor plugins.IssueExtractor, runner executor.Runner)
OpenJira ... try to display jira configuration
func ReadPassword ¶
ReadPassword ... read input from the user anonymously
func UpNext ¶ added in v1.0.0
UpNext ... Returns the next branch ready for integration based on time of creation Oldest branches gets integrated first.
func UpdateGithubIssue ¶
func UpdateGithubIssue(issue string, conf *setting.ProjectSetting) (string, error)
UpdateGithubIssue ... Updating an issue on github and returns the branch name
func UpdateJIRAIssue ¶
func UpdateJIRAIssue(key string, conf *setting.ProjectSetting) (string, error)
UpdateJIRAIssue ... Updates the issue on jira and returns the name of the branch
func WorkOn ¶
func WorkOn(keyOrID string, conf *setting.ProjectSetting, update WorkOnUpdate)
WorkOn ... creates a new workspace from issue by given WorkOnUpdate and configuration
func WorkOnCaller ¶
func WorkOnCaller(keyOrID string)
WorkOnCaller ... Toplevel workon function called from cmd
func WrapUp ¶
func WrapUp(smartCommitPrefix, force string, extractor plugins.IssueExtractor)
WrapUp ...
Types ¶
type Fetch ¶
type Fetch func(*setting.ProjectSetting) ([]plugins.Stringer, error)
Fetch ... Type for getting issues
type WorkOnUpdate ¶
type WorkOnUpdate func(key string, projectSetting *setting.ProjectSetting) (string, error)
WorkOnUpdate ... Type for updating issues returns a name or an error