Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.6.1"
Functions ¶
func ProcessNewRelease ¶
func ProcessNewRelease(ctx Context, release *github.ReleaseEvent)
func ReplaceVersion ¶
returns a copy of content where versions according to the regex are replaced.
Example:
(?P<key>\s*version:\s*)(?P<value>v.*?)(?P<other>$|\s+\.*)
Important: the regex MUST define the following groups keys and other in order to work. Otherwise the version is not replaced.
key defines the key including the preceding characters. This may be needed for formats like YAML.
other contains everything you want to keep in that line behind the version value to replace.
func ReplaceVersionString ¶
convenience method for ReplaceVersion to ease testing
Types ¶
Click to show internal directories.
Click to hide internal directories.