Documentation ¶
Overview ¶
Package rules provides functions to deal with release rules.
Index ¶
Constants ¶
View Source
const Default = `` /* 178-byte string literal not displayed */
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ReleaseRule ¶
type ReleaseRules ¶
type ReleaseRules struct {
Rules []ReleaseRule `json:"rules"`
}
func Init ¶ added in v2.2.2
func Init(opts *Options) (rr *ReleaseRules, err error)
Init initalize a new set of release rules with the given options if any.
func Parse ¶ added in v2.2.2
func Parse(reader io.Reader) (*ReleaseRules, error)
Parse reads a buffer a returns the corresponding release rules.
func (*ReleaseRules) Map ¶
func (r *ReleaseRules) Map() map[string]string
Map returns a flat map corresponding to the release rules with commit types as keys and release types as values.
Click to show internal directories.
Click to hide internal directories.