Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(configData *PrpConfig)
Validate makes sure all of the config values are initialized
func WriteConfig ¶
WriteConfig saves a PrpConfig to a file
Types ¶
type PrpConfig ¶
type PrpConfig struct {
Profiles map[string]PrpConfigProfile `json:"profiles,omitempty"`
}
PrpConfig defines the structure of the pull request parser config file
func LoadConfigFromFile ¶
LoadConfigFromFile loads a PrpConfig from a file
type PrpConfigProfile ¶
type PrpConfigProfile struct {
TrackedRepos []PrpConfigRepo `json:"trackedRepos,omitempty"`
Token string `json:"token,omitempty"`
APIURL string `json:"apiUrl,omitempty"`
}
PrpConfigProfile defines the structure of pull request parser profile
type PrpConfigRepo ¶
type PrpConfigRepo struct {
Owner string `json:"owner,omitempty"`
Name string `json:"name,omitempty"`
LocalPath string `json:"localPath,omitempty"`
IgnoredBuilds []string `json:"ignoredBuilds,omitempty"`
}
PrpConfigRepo defines the structure of pull request parser tracked repo entry
Click to show internal directories.
Click to hide internal directories.