mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-01-12 22:47:34 +08:00
37 lines
655 B
GraphQL
37 lines
655 B
GraphQL
query SearchRepos($search: String!, $before: String) {
|
|
search(first: 100, query: $search, type: REPOSITORY, before: $before){
|
|
# Search Results
|
|
nodes {
|
|
... on Repository {
|
|
id
|
|
name
|
|
hasIssuesEnabled
|
|
owner {
|
|
login
|
|
}
|
|
description
|
|
pushedAt
|
|
primaryLanguage {
|
|
name
|
|
color
|
|
}
|
|
stargazers {
|
|
totalCount
|
|
}
|
|
defaultBranchRef {
|
|
name
|
|
}
|
|
}
|
|
}
|
|
|
|
# Information Needed for Paging
|
|
pageInfo {
|
|
endCursor
|
|
hasNextPage
|
|
}
|
|
|
|
# Total Amount of Search Results
|
|
repositoryCount
|
|
}
|
|
}
|