Skip to content

Instantly share code, notes, and snippets.

@alexandreaquiles
Created August 28, 2017 16:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alexandreaquiles/1367baba2e3b803ed8604950fdc039bb to your computer and use it in GitHub Desktop.
Save alexandreaquiles/1367baba2e3b803ed8604950fdc039bb 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