You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code, this can only happen with the sha field of the DiffEntry struct. If I modify the code to make this field optional, the request works.
When a commit includes file(s) that have no changes to the contents, the
sha
field is null. e.g. the file mode changed from 100644 to 10755.When trying to parse the commit response, this error shows up:
Looking at the code, this can only happen with the
sha
field of theDiffEntry
struct. If I modify the code to make this field optional, the request works.I note that this behavior actually differs from what GitHub claim here: https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#get-a-commit
It says that
sha
is a required field, but that doesn't appear to be the case in this one situation.The text was updated successfully, but these errors were encountered: