BlueGit

timfa bluegit

Files

bluegit / internal / ci / forkref.go

forkref.go

forkref.go 292 B Download Raw
1package ci
2
3import "strings"
4
5// ForkBranchPrefix: branches in upstream die een fork-MR spiegelen.
6const ForkBranchPrefix = "forks/"
7
8// IsForkBranch: pipelines op deze branch krijgen geen geheimen.
9func IsForkBranch(branch string) bool { return strings.HasPrefix(branch, ForkBranchPrefix) }