[v8.5.x] CI: Backport grafana-com publishing (#65168)

[v8.5.x] Backport grafana-com publishing

This should complete #56797.
This commit is contained in:
Horst Gutmann
2023-05-12 09:33:12 +03:00
committed by GitHub
parent b06e795c27
commit 8135ff40d6
53 changed files with 5533 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
package git
import (
"fmt"
"regexp"
)
const (
MainBranch = "main"
HomeDir = "."
RepoOwner = "grafana"
OSSRepo = "grafana"
EnterpriseRepo = "grafana-enterprise"
EnterpriseCheckName = "Grafana Enterprise"
EnterpriseCheckDescription = "Downstream tests to ensure that your changes are compatible with Grafana Enterprise"
)
func PRCheckRegexp() *regexp.Regexp {
reBranch, err := regexp.Compile(`^prc-([0-9]+)-([A-Za-z0-9]+)\/(.+)$`)
if err != nil {
panic(fmt.Sprintf("Failed to compile regexp: %s", err))
}
return reBranch
}