Documentation ¶
Overview ¶
Package regex provides an updater that uses a regex to update files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexUpdater ¶
type RegexUpdater struct { FilePath string Pattern string Regexp *regexp.Regexp Valuer value.Valuer }
RegexUpdater is an updater that uses a regex to update files.
func NewUpdater ¶
NewUpdater builds a new regex updater from the given parameters and valuer
func (RegexUpdater) Message ¶
func (u RegexUpdater) Message() (title, body string)
Message returns the default title and body that should be used in the commits / pull requests
func (RegexUpdater) String ¶
func (u RegexUpdater) String() string
String returns a string representation of the updater
Click to show internal directories.
Click to hide internal directories.