Open
Description
Currently, the api repos().list_commits()
will always return None
for stats
and files
, debug it a bit I found that:
repos().list_commits()
will callrepos/{owner}/{repo}/commits
fromapi.github.com
but the response of this API did not contain thestats
andfiles
information- We need to call
repos/{owner}/{repo}/commits/{sha}
to get thestats
andfiles
information.
If this is valid, I can contribute after reaching consensus.
attached two example links[1][2] for more info, and the doc for commits[3]
[1] https://api.github.com/repos/apache/amoro/commits?author=klion26
[2] repos/apache/amoro/commits/c69a2363a6263297421ec6bece176b39a69a5c99
[3] https://docs.github.com/en/enterprise-cloud@latest/rest/commits/commits?apiVersion=2022-11-28
Metadata
Metadata
Assignees
Labels
No labels