Skip to content

Instantly share code, notes, and snippets.

@suntong
Last active October 14, 2019 19:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suntong/97a919c21e6adc53447f5059a34d334a to your computer and use it in GitHub Desktop.
Save suntong/97a919c21e6adc53447f5059a34d334a to your computer and use it in GitHub Desktop.
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}}}
}
}
}
}
}
{
"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