使用github API v4 graphQL获取提交更改的文件和补丁

sha*_*sol 8 github-api graphql

In the Rest v3, I could easily query a commit and get the changed files and patch for each file: https://developer.github.com/v3/repos/commits/#get-a-single-commit

I don't seem to be able to retrieve this info using the new v4 graphQL, does anyone have a clue how?

ben*_*123 5

目前,GitHub 的 GraphQL API v4 似乎不支持您正在寻找且在我看来非常需要的功能,最好坚持使用当前的 REST API。

您可以参考官方 GitHub API 支持论坛上的以下帖子以及 GitHub 工作人员在那里给出的答案。

ref1 - 29/5/19

参考文献 2 - 2018 年 5 月 11 日

此外,在 SO here 上发布了一个类似的问题