feat(plan): add support for pretest and release candidate builds

Add support for naming release and builds accordingly when given a git
ref for a pretest (90 or above patch number) or release
candidate ("-rcX" at the end of the tag).
This commit is contained in:
2021-12-04 22:50:00 +00:00
parent 59f1bcd3e8
commit 743b10c751
9 changed files with 585 additions and 37 deletions

9
pkg/sanitize/string.go Normal file
View File

@@ -0,0 +1,9 @@
package sanitize
import "regexp"
var nonAlphaNum = regexp.MustCompile(`[^\w_-]+`)
func String(s string) string {
return nonAlphaNum.ReplaceAllString(s, "-")
}