CI: change regex to accomodate new branching stategy in enterprise (#59429)

change regex to accomodate new branching stategy in enterprise
This commit is contained in:
Kevin Minehart
2022-11-28 13:09:10 -05:00
committed by GitHub
parent d6dd86d273
commit 560b595ef2
2 changed files with 36 additions and 5 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func NewGitHubClient(ctx context.Context, token string) *github.Client {
}
func PRCheckRegexp() *regexp.Regexp {
reBranch, err := regexp.Compile(`^pr-check-([0-9]+)\/(.+)$`)
reBranch, err := regexp.Compile(`^prc-([0-9]+)-([A-Za-z0-9]+)\/(.+)$`)
if err != nil {
panic(fmt.Sprintf("Failed to compile regexp: %s", err))
}