Documentation
¶
Index ¶
- func ComponentCapacity(config *CapacityConfig, name string) (bool, int)
- func HasMergeWindow(c MergeWindowConfig) bool
- func IsMergeWindowOpen(c MergeWindowConfig) bool
- type CapacityConfig
- type ClassifierConfig
- type ComponentClassifierConfig
- type ComponentGroup
- type KeywordsClassifierConfig
- type MergeWindowConfig
- type PMScoreClassifierConfig
- type PMScoreRange
- type PatchManagerConfig
- type PullRequestLabelRuleConfig
- type RulesConfig
- type SeverityClassifierConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentCapacity ¶
func ComponentCapacity(config *CapacityConfig, name string) (bool, int)
func HasMergeWindow ¶
func HasMergeWindow(c MergeWindowConfig) bool
func IsMergeWindowOpen ¶
func IsMergeWindowOpen(c MergeWindowConfig) bool
Types ¶
type CapacityConfig ¶
type CapacityConfig struct {
Groups []ComponentGroup `yaml:"groups"`
// MaximumTotalPicks is total number if pull request approved regardless of component
MaximumTotalPicks int `yaml:"maxTotalPicks"`
// MaximumdefaultPicksPerComponent is default capacity for component when there is no capacity defined.
MaximumDefaultPicksPerComponent int `yaml:"maxDefaultPicksPerComponent"`
}
CapacityConfig define a list of component and their QE capacity
type ClassifierConfig ¶
type ClassifierConfig struct {
KeywordsClassifier KeywordsClassifierConfig `yaml:"keywords"`
ComponentClassifier ComponentClassifierConfig `yaml:"components"`
Severities SeverityClassifierConfig `yaml:"severities"`
PMScores PMScoreClassifierConfig `yaml:"pmScores"`
}
type ComponentGroup ¶
type MergeWindowConfig ¶
type PMScoreClassifierConfig ¶
type PMScoreClassifierConfig []PMScoreRange
type PMScoreRange ¶
type PatchManagerConfig ¶
type PatchManagerConfig struct {
Release string `yaml:"release"`
CapacityConfig CapacityConfig `yaml:"capacity"`
ClassifiersConfigs ClassifierConfig `yaml:"classifiers"`
RulesConfig RulesConfig `yaml:"rules"`
MergeWindowConfig MergeWindowConfig `yaml:"mergeWindow"`
}
func GetConfig ¶
func GetConfig(location string) (*PatchManagerConfig, error)
GetConfig gets a configuration file either locally or remotely via HTTP or HTTPS client.
type RulesConfig ¶
type RulesConfig struct {
PullRequestLabelConfig PullRequestLabelRuleConfig `yaml:"labels"`
}
Click to show internal directories.
Click to hide internal directories.