You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/zoekt-mirror-github/main.go
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ import (
30
30
"strconv"
31
31
"strings"
32
32
33
-
"github.com/google/go-github/v27/github"
33
+
"github.com/google/go-github/v78/github"
34
34
"golang.org/x/oauth2"
35
35
36
36
"github.com/sourcegraph/zoekt/gitindex"
@@ -51,6 +51,7 @@ type reposFilters struct {
51
51
topics []string
52
52
excludeTopics []string
53
53
noArchived*bool
54
+
visibility []string
54
55
}
55
56
56
57
funcmain() {
@@ -68,6 +69,8 @@ func main() {
68
69
excludeTopics:=topicsFlag{}
69
70
flag.Var(&excludeTopics, "exclude_topic", "don't clone repos whose have one of given topics. You can add multiple topics by setting this more than once.")
70
71
noArchived:=flag.Bool("no_archived", false, "mirror only projects that are not archived")
72
+
visibility:=topicsFlag{}
73
+
flag.Var(&visibility, "visibility", "filter repos by visibility (public, private, internal). You can add multiple values by setting this more than once.")
0 commit comments