services

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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