Skip to content

Instantly share code, notes, and snippets.

@djalmabright
Forked from alexandreaquiles/github.gql
Created September 29, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djalmabright/64e29b273acc446adfaaf07ce3d9a06c to your computer and use it in GitHub Desktop.
Save djalmabright/64e29b273acc446adfaaf07ce3d9a06c to your computer and use it in GitHub Desktop.
Consulta GraphQL que busca estatísticas do projeto Express: o número de stars, de pull requests abertos, de issues abertas, a data da última release e informações do último commit.
query {
repository(owner:"expressjs", name: "express") {
stargazers {
totalCount
}
pullRequests(states: OPEN) {
totalCount
}
issues(states:OPEN) {
totalCount
}
releases(last: 1) {
nodes {
name
publishedAt
}
}
refs(first: 1, refPrefix:"refs/heads/") {
nodes {
target {
... on Commit {
committer {
user {
login
}
}
message
committedDate
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment