Documentation ¶
Index ¶
- func ProcessRules(rules []Rule, state multistep.StateBag) []string
- func Run(rule Rule, state multistep.StateBag)
- func RunGroup(group RulesGroup, state multistep.StateBag) []string
- type ActionStep
- type CommentsCondition
- type Condition
- type DescriptionCondition
- type FilesCondition
- type PatchCondition
- type RefCondition
- type Rule
- type RulesByConditionOrder
- type RulesGroup
- type TitleCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionStep ¶
type ActionStep struct {
// contains filtered or unexported fields
}
func (*ActionStep) Cleanup ¶
func (s *ActionStep) Cleanup(multistep.StateBag)
func (*ActionStep) Run ¶
func (s *ActionStep) Run(state multistep.StateBag) multistep.StepAction
type CommentsCondition ¶
type CommentsCondition struct {
Count string `mapstructure:"count,omitempty"`
}
func (*CommentsCondition) IsEmpty ¶
func (c *CommentsCondition) IsEmpty() bool
type Condition ¶
type Condition struct { Order int `mapstructure:"order,omitempty"` MatchKind string `mapstructure:"match-kind,omitempty"` IfLabeled []string `mapstructure:"if-labeled,omitempty"` SkipIfLabeled []string `mapstructure:"skip-if-labeled,omitempty"` Files FilesCondition `mapstructure:"files,omitempty"` Title TitleCondition `mapstructure:"title,omitempty"` Description DescriptionCondition `mapstructure:"description,omitempty"` Ref RefCondition `mapstructure:"ref,omitempty"` Comments CommentsCondition `mapstructure:"comments,omitempty"` Patch PatchCondition `mapstructure:"patch,omitempty"` }
type DescriptionCondition ¶
type DescriptionCondition struct { StartsWith string `mapstructure:"starts-with,omitempty"` EndsWith string `mapstructure:"ends-with,omitempty"` Patterns []string `mapstructure:"patterns,omitempty"` }
func (*DescriptionCondition) IsEmpty ¶
func (c *DescriptionCondition) IsEmpty() bool
type FilesCondition ¶
type FilesCondition struct { Patterns []string `mapstructure:"patterns,omitempty"` Extensions []string `mapstructure:"extensions,omitempty"` }
func (*FilesCondition) IsEmpty ¶
func (c *FilesCondition) IsEmpty() bool
type PatchCondition ¶
type PatchCondition struct { Hunk struct { StartsAt int `mapstructure:"starts-at,omitempty"` Patterns []string `mapstructure:"patterns,omitempty"` NotPatterns []string `mapstructure:"not-patterns,omitempty"` } `mapstructure:"hunk,omitempty"` }
func (*PatchCondition) IsEmpty ¶
func (c *PatchCondition) IsEmpty() bool
type RefCondition ¶
type RefCondition struct { Equals string `mapstructure:"match,omitempty"` Patterns []string `mapstructure:"patterns,omitempty"` }
func (*RefCondition) IsEmpty ¶
func (c *RefCondition) IsEmpty() bool
type Rule ¶
type RulesByConditionOrder ¶
type RulesByConditionOrder []Rule
func (RulesByConditionOrder) Len ¶
func (r RulesByConditionOrder) Len() int
func (RulesByConditionOrder) Less ¶
func (r RulesByConditionOrder) Less(i, j int) bool
func (RulesByConditionOrder) Swap ¶
func (r RulesByConditionOrder) Swap(i, j int)
type RulesGroup ¶
func GroupByRuleOrder ¶
func GroupByRuleOrder(rules []Rule) []RulesGroup
type TitleCondition ¶
type TitleCondition struct { StartsWith string `mapstructure:"starts-with,omitempty"` EndsWith string `mapstructure:"ends-with,omitempty"` Patterns []string `mapstructure:"patterns,omitempty"` }
func (*TitleCondition) IsEmpty ¶
func (c *TitleCondition) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.