We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70fdbb commit b69b97bCopy full SHA for b69b97b
cmd/github/github.go
@@ -17,6 +17,10 @@ const QUERY_SEPARATOR = " "
17
const SEARCH_REPOS_PER_ONCE = 20
18
const TOKEN_NAME = "GITHUB_TOKEN"
19
20
+// To find forked repositories by search
21
+// https://docs.github.com/en/search-github/searching-on-github/searching-in-forks
22
+const FORK_QUERY = "fork:true"
23
+
24
type GitHubRepository struct {
25
Name string
26
Owner string
@@ -156,7 +160,7 @@ func FetchFromGitHub(params []FetchRepositoryParam) []GitHubRepository {
156
160
for i, param := range params {
157
161
names[i] = param.QueryWord()
158
162
}
159
- q := strings.Join(names, QUERY_SEPARATOR)
163
+ q := strings.Join(names, QUERY_SEPARATOR) + " " + FORK_QUERY
164
variables := map[string]interface{}{
165
"query": githubv4.String(q),
166
"count": githubv4.Int(len(names)),
0 commit comments