Skip to content

Instantly share code, notes, and snippets.

@DaniloOliveira28
Last active July 15, 2020 20:52
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 DaniloOliveira28/d362701c1311d82a4ff418303a187b9c to your computer and use it in GitHub Desktop.
Save DaniloOliveira28/d362701c1311d82a4ff418303a187b9c to your computer and use it in GitHub Desktop.
Exemplo de chamada para puxar os total de commits e adições/remoções na branch master.
link:
https://developer.github.com/v4/explorer/
query {
repository(name:"linux" owner:"torvalds"){
name
defaultBranchRef {
id
}
object(expression: "master") {
... on Commit {
oid
history(first: 100, since: "2020-01-01T00:00:00Z" ) {
totalCount
nodes {
oid
messageHeadline
author {
user {
login
}
}
committedDate
additions
deletions
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment