Documentation ¶
Index ¶
- Constants
- func ConfigPath() string
- func ExtractIssue(data string) (match string, ok bool)
- func FindUsername(fullName string) (username string)
- func IssueURL(key string) string
- func NewAuthenticatedGithubClient() *github.Client
- func NewGithubClient() *github.Client
- func NormalizeIssueKey(key string) string
- func SaveConfig()
- func WriteConfig(c *Config)
- type Config
- type GithubConfig
- type Issue
- type JiraConfig
Constants ¶
View Source
const (
ConfigFilename = "config.json"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
func ExtractIssue ¶
func FindUsername ¶
func NewGithubClient ¶
func NormalizeIssueKey ¶
func SaveConfig ¶
func SaveConfig()
func WriteConfig ¶
func WriteConfig(c *Config)
Types ¶
type Config ¶
type Config struct { Jira *JiraConfig `json:"jira"` Github *GithubConfig `json:"github"` MaxBranchLength int `json:"maxBranchLength"` AssociatedPaths []string `json:"associatedPaths"` UserMap map[string]string `json:"userMap"` SignPullRequests bool `json:"signPullRequests"` }
var (
AppConfig *Config
)
type GithubConfig ¶
func (*GithubConfig) FilledOut ¶
func (c *GithubConfig) FilledOut() bool
type JiraConfig ¶
type JiraConfig struct { Host string `json:"host"` ApiPath string `json:"api_path"` ActivityPath string `json:"activity_path"` Login string `json:"login"` Password string `json:"password"` DefaultProject string `json:"defaultProject"` }
func (*JiraConfig) FilledOut ¶
func (c *JiraConfig) FilledOut() bool
Click to show internal directories.
Click to hide internal directories.