Reputation: 949
I'm trying to compare two commits in GitHub using the Compare operation described in API documentation but I'm having an issue: the files
field is always empty.
When I make the request I get the following output (I've hidden the fields' content):
What I've tried so far:
application/vnd.github.diff
(or .path
): the body answer is emptyI've read some posts on Stack Overflow about the usage of the API, but didn't find something that can help me. In the documentation of the operation I didn't find something that could help me figure out what I'm doing wrong.
cURL:
curl -XGET -H 'Authorization: token ACCESS_TOKEN_VALUE' 'https://api.github.com/repos/myorg/myrepo/compare/main...feature/initial-scaffolding'
Upvotes: 0
Views: 43