【问题标题】:Get all the commits part of the release with Github API使用 Github API 获取发布的所有提交部分
【发布时间】:2023-03-03 00:13:02
【问题描述】:

有没有办法获取有关所有已更改文件的详细信息以及谁更改了与发布相关联的文件。我检查了 github release api,它没有提供有关更改文件的详细信息。如果 api 可以提供有关提交的详细信息,那将是很好的。

https://developer.github.com/v3/repos/releases/

【问题讨论】:

    标签: javascript python github github-api


    【解决方案1】:

    Commit GitHub API 允许您:

    因此,对于第一步的每个提交,您需要:

    • either get each commit,其中包括一个 diff_url 字段和一个 patch_url 字段,
    • 或(更快)直接查询您可以从第一步返回的提交列表中推断出的差异 URL。

      https://github.com/<owner>/<repo>/commit/<commit>.diff
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-19
      • 1970-01-01
      • 1970-01-01
      • 2015-01-31
      • 2012-12-23
      • 2020-12-31
      • 1970-01-01
      • 2017-03-28
      相关资源
      最近更新 更多