Documentation
¶
Index ¶
Constants ¶
View Source
const ( InternalDefaultService = "github" InternalDefaultIntegrationBranch = "master" InternalDefaultRemote = "origin" InternalDefaultApi = "https://api.github.com" InternalDefaultWeb = "https://github.com" InternalDefaultDeliveryBranchPrefix = "ready" InternalDefaultScope = "internal" InternalDefaultOrigin = "none" )
Default configuration
Variables ¶
This section is empty.
Functions ¶
func BootstrapPhlowConfig ¶
BootstrapPhlowConfig ... Creates a new .phlow ini file on given location
func GetDefaultBranchFromInternalDefault ¶
GetDefaultBranchFromInternalDefault ... Trying to retrieve the default branch from github
func NewConfigError ¶
func ValidateLoadedSetting ¶
func ValidateLoadedSetting(setting *ProjectSetting) error
ValidateLoadedSetting ...
Types ¶
type ConfigError ¶
type ConfigError struct {
// contains filtered or unexported fields
}
func (*ConfigError) Error ¶
func (ce *ConfigError) Error() string
type ProjectSetting ¶
type ProjectSetting struct {
Service string `ini:"service"`
IntegrationBranch string `ini:"integration-branch"`
Remote string `ini:"remote"`
IssueApi string `ini:"issue-api"`
IssueWeb string `ini:"issue-web"`
PipelineUrl string `ini:"pipeline"`
DeliveryBranchPrefix string `ini:"delivery-branch-prefix"`
Scope string
INIBlock string
}
ProjectSetting ...
func LoadSettings ¶
func LoadSettings(INIBlock string, git githandler.Git) *ProjectSetting
func NewProjectStg ¶
func NewProjectStg(INIBlock string) *ProjectSetting
NewProjectStg ... initializes project settings from .phlow INI files
Click to show internal directories.
Click to hide internal directories.