I’ve been trying to find a way of using the GraphQL API to find the details of the last commit, (specifically who committed it and the date of the commit), on a specific file, but no joy as yet.
Can anyone help me out?
I’ve been trying to find a way of using the GraphQL API to find the details of the last commit, (specifically who committed it and the date of the commit), on a specific file, but no joy as yet.
Can anyone help me out?
For those looking for a solution, I got part of the information I wanted using:
query($projectPath: ID!, $filePath :String){
project(Path: $projectPath) {
repository {
tree(path: $filePath) {
lastCommit {
author {
name
}
committerEmail
committedDate
authoredDate
}
}
}
}
}
Now I need to get the original date that the file was created.
Can anyone out there help?