Skip to content

Instantly share code, notes, and snippets.

@gjtorikian
Last active October 19, 2017 15:34
Show Gist options
  • Save gjtorikian/f5b72bfbd749d71092d684fb4ff12c9b to your computer and use it in GitHub Desktop.
Save gjtorikian/f5b72bfbd749d71092d684fb4ff12c9b 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"
}
}
}
]
}
}
}
}
}
@kasunsiyambalapitiya
Copy link

This call gives the blame details of the file cookieJar.js which is in the current commit state of the master branch(the commit the master branch is pointing now) is there any way to get the blame of the above file from a desired commit state (by giving the commit hash of the desired commit state)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment