We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4775f6c commit bb007daCopy full SHA for bb007da
gitlab.go
@@ -69,7 +69,18 @@ func (g *GitLabConfig) ListRepositories() ([]*Repository, error) {
69
outSlice := make([]*Repository, 0, len(out))
70
for _, repository := range out {
71
isExcluded := slices.ContainsFunc(g.Exclude, func(s string) bool {
72
- return strings.EqualFold(s, repository.FullName)
+ if strings.EqualFold(s, repository.FullName) {
73
+ return true
74
+ }
75
+
76
+ if strings.Contains(s, "/") {
77
+ return false
78
79
80
+ repoFullName := repository.FullName
81
82
+ repoOwner := repoFullName[:strings.Index(repoFullName, "/")]
83
+ return strings.EqualFold(s, repoOwner)
84
})
85
if isExcluded {
86
log.Printf("Skipping excluded repository: %s", repository.FullName)
0 commit comments