The REST API would tell you if a file was added, modified or deleted: https://developer.github.com/v3/pulls/#list-pull-requests-files
The GraphQL API doesn't seem to have any way to do this - you can see how many additions/deletions were in a commit/PR overall, but there isn't a way (without separately querying the repo) to see which files are new vs simply had lines added. This is functionality we used in the REST API for some of our automation.
Solved! Solved! Go to Solution.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!
The proposed solution isn't really one. It merely admits that the requested feature is missing. It would be nice to leave this as "unresolved" and notify subscribers to when this is is actually fixed. Thanks!