Skip to content

Commit cd269d2

Browse files
committed
Filters out forks in ghtool repos mode
1 parent 195f3cc commit cd269d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ghtool/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ func getRepos(client *github.Client, user string) ([]string, error) {
115115
}
116116

117117
for _, repo := range repos {
118+
if *repo.Fork {
119+
continue
120+
}
118121
allRepos = append(allRepos, *repo.CloneURL)
119122
}
120123

0 commit comments

Comments
 (0)