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 3952bae commit e9cc178Copy full SHA for e9cc178
github.go
@@ -51,7 +51,16 @@ func (c *GithubConfig) ListRepositories() ([]*Repository, error) {
51
gitUrl.User = url.UserPassword("github", c.AccessToken)
52
53
isExcluded := slices.ContainsFunc(c.Exclude, func(s string) bool {
54
- return strings.EqualFold(s, *repo.FullName)
+ if strings.EqualFold(s, *repo.FullName) {
55
+ return true
56
+ }
57
+
58
+ if strings.Contains(s, "/") {
59
+ return false
60
61
62
+ repoOwner = *repo.FullName[:strings.Index(*repo.FullName, "/")]
63
+ return strings.EqualFold(s, repoOwner)
64
})
65
if isExcluded {
66
log.Printf("Skipping excluded repository: %s", *repo.FullName)
0 commit comments