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

Get blame of diff in pull request.

Solved! Go to Solution.

How to get the blame of diff and diff using graphql API? In documentation didn`t find information about gatting blame in a pull request.

1 Reply
Solution
Community Manager
Message 2 of 2

Re: Get blame of diff in pull request.

From the `PullRequest` object you would use the `commits` connection to get the list of `PullRequestCommit` objects. From each of those, you can use the `commit` field to get the `Commit` object. And from the `Commit` object, you can get the blame information through the `blame` field.

 

I hope that helps!