Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

GraphQL getting filename,file content by commit

Hi

  I use the below search query to get all the commits since date by org.

Here, I am not sure how to get the file names changed in the commit. The tree is retuning all the top level folder name if there is any change in the file in that folder or sub folder. But, doesnt return the actual files changed in the commit. Is there any way to get this details?

  

{
search(query: "org:test", type: REPOSITORY, last: 100) {
edges {
node {
... on Repository {
name
defaultBranchRef {
name
target {
... on Commit {
history(first: 100, since: "2019-05-01T00:00:00") {
edges {
node {
... on Commit {
committedDate
additions
changedFiles
deletions
comments(first:10) {
totalCount
}
tree { 
entries {
name
} 
}
associatedPullRequests(first:1) {
edges {
node {
id
}
}
}
author {
name
email
}
}
}
}
}
}
}
}
}
}
}
}
}
1 Reply
Community Manager
Message 2 of 2

Re: GraphQL getting filename,file content by commit

This is a duplicate of a previous topic. You may want to continue the conversation there. Since this is a duplicate topic, I'm going to close this one.