Documentation ¶
Index ¶
- Constants
- type ConfigService
- type GitHubService
- type GitService
- type JiraService
- func (j JiraService) ExtractIssueId(s string) (string, error)
- func (j JiraService) FormatIssueId(issueNumber int) string
- func (j JiraService) FormatIssueURL(issueId string) string
- func (j JiraService) GetSummaryForIssueId(issueId string) string
- func (j JiraService) TransitionIssueId(issueId, transitionId string)
Constants ¶
View Source
const ( FileName = "config" Directory = ".config/tflow" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct { }
func (ConfigService) InitConfig ¶
func (c ConfigService) InitConfig()
type GitHubService ¶
type GitHubService struct { }
func (GitHubService) CreatePullRequest ¶
func (g GitHubService) CreatePullRequest(title string, body string) string
func (GitHubService) GetBaseBranchName ¶
func (g GitHubService) GetBaseBranchName() string
func (GitHubService) MergePullRequest ¶
func (g GitHubService) MergePullRequest()
type GitService ¶
type GitService struct { }
func (GitService) GetCurrentBranchName ¶
func (g GitService) GetCurrentBranchName() string
GetCurrentBranchName Requires git >= 2.22
func (GitService) NormalizeForGitBranchName ¶
func (g GitService) NormalizeForGitBranchName(s string) string
func (GitService) PushCurrentBranch ¶
func (g GitService) PushCurrentBranch()
func (GitService) SwitchBranchCreateIfNotExists ¶
func (g GitService) SwitchBranchCreateIfNotExists(name string)
type JiraService ¶
type JiraService struct { Token string Username string URL string Key string // contains filtered or unexported fields }
func (JiraService) ExtractIssueId ¶
func (j JiraService) ExtractIssueId(s string) (string, error)
func (JiraService) FormatIssueId ¶
func (j JiraService) FormatIssueId(issueNumber int) string
func (JiraService) FormatIssueURL ¶ added in v0.4.0
func (j JiraService) FormatIssueURL(issueId string) string
func (JiraService) GetSummaryForIssueId ¶
func (j JiraService) GetSummaryForIssueId(issueId string) string
func (JiraService) TransitionIssueId ¶
func (j JiraService) TransitionIssueId(issueId, transitionId string)
Click to show internal directories.
Click to hide internal directories.