Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constraints ¶
type Constraints struct { Ref List Repo List Instance List Platform List Environment List Event List Branch List Status List Matrix Map Local types.BoolTrue Path Path }
Constraints defines a set of runtime constraints.
type List ¶
List defines a runtime constraint for exclude & include string slices.
func (*List) Match ¶
Match returns true if the string matches the include patterns and does not match any of the exclude patterns.
func (*List) UnmarshalYAML ¶
UnmarshalYAML unmarshals the constraint.
type Map ¶
Map defines a runtime constraint for exclude & include map strings.
func (*Map) Match ¶
Match returns true if the params matches the include key values and does not match any of the exclude key values.
func (*Map) UnmarshalYAML ¶
UnmarshalYAML unmarshals the constraint map.
type Path ¶
type Path struct { Include []string Exclude []string IgnoreMessage string `yaml:"ignore_message,omitempty"` }
Path defines a runtime constrain for exclude & include paths.
func (*Path) Match ¶
Match returns true if file paths in string slice matches the include and not exclude patterns
or if commit message contains ignore message.
func (*Path) UnmarshalYAML ¶
UnmarshalYAML unmarshals the constraint.