Skip to content

Instantly share code, notes, and snippets.

@mehmetbebek
Forked from gjtorikian/sample-blame.graphql
Created June 7, 2017 20:46
Show Gist options
  • Save mehmetbebek/596addd3e38af6461b30f9e5b4d0ea91 to your computer and use it in GitHub Desktop.
Save mehmetbebek/596addd3e38af6461b30f9e5b4d0ea91 to your computer and use it in GitHub Desktop.
{
repository(owner: "facebook", name: "mention-bot") {
object(expression: "master") {
... on Commit {
blame(path: "cookieJar.js") {
ranges {
startingLine
endingLine
age
commit {
message
author {
name
}
}
}
}
}
}
}
}
{
"data": {
"repository": {
"object": {
"blame": {
"ranges": [
{
"startingLine": 1,
"endingLine": 1,
"age": 10,
"commit": {
"message": "adding github auth flow",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 2,
"endingLine": 9,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 10,
"endingLine": 11,
"age": 10,
"commit": {
"message": "adding github auth flow",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 12,
"endingLine": 12,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 13,
"endingLine": 13,
"age": 10,
"commit": {
"message": "adding github auth flow",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 14,
"endingLine": 14,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 15,
"endingLine": 16,
"age": 10,
"commit": {
"message": "fix flow",
"author": {
"name": "Christopher Chedeau"
}
}
},
{
"startingLine": 17,
"endingLine": 19,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 20,
"endingLine": 20,
"age": 10,
"commit": {
"message": "adding github auth flow",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 21,
"endingLine": 23,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 24,
"endingLine": 24,
"age": 10,
"commit": {
"message": "fix flow",
"author": {
"name": "Christopher Chedeau"
}
}
},
{
"startingLine": 25,
"endingLine": 32,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 33,
"endingLine": 33,
"age": 10,
"commit": {
"message": "fix flow",
"author": {
"name": "Christopher Chedeau"
}
}
},
{
"startingLine": 34,
"endingLine": 47,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 48,
"endingLine": 48,
"age": 10,
"commit": {
"message": "Fixed typos",
"author": {
"name": "Pascal Borreli"
}
}
},
{
"startingLine": 49,
"endingLine": 63,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 64,
"endingLine": 64,
"age": 10,
"commit": {
"message": "fix flow",
"author": {
"name": "Christopher Chedeau"
}
}
},
{
"startingLine": 65,
"endingLine": 65,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 66,
"endingLine": 66,
"age": 10,
"commit": {
"message": "adding github auth flow",
"author": {
"name": "Zeke Nierenberg"
}
}
},
{
"startingLine": 67,
"endingLine": 67,
"age": 10,
"commit": {
"message": "responding to CR. Not quite working yet",
"author": {
"name": "Zeke Nierenberg"
}
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment