Last active
March 15, 2025 21:33
-
-
Save suntong/97a919c21e6adc53447f5059a34d334a to your computer and use it in GitHub Desktop.
How to search with Github GraphQL - https://medium.com/@suntong001/query-github-graphql-9a4547d33bad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query SearchMostTop10Star($queryString: String!, $numberRepos:Int!) { | |
search(query: $queryString, type: REPOSITORY, first: $numberRepos) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
name | |
url | |
description | |
# shortDescriptionHTML | |
createdAt | |
pushedAt | |
updatedAt | |
releases {releases: totalCount} | |
forks: forkCount | |
pullRequests {pullRequests: totalCount} | |
stargazers {stars: totalCount} | |
totalIssues: issues {totalIssues: totalCount} | |
openIssues: issues(states:[OPEN]) {openIssues: totalCount} | |
primaryLanguage {primaryLanguage: name} | |
languages(first: 3) { nodes {name} } | |
repositoryTopics(first: 12) {nodes {topic {name}}} | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"queryString": "GraphQL language:Go stars:>10 forks:>3 size:>2000 pushed:>=2018-08-08", | |
"numberRepos": 10 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment