Elvis Oliveira
Elvis Oliveira

Reputation: 949

Get file list comparing commits

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):

enter image description here

What I've tried so far:

I'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

Answers (0)

Related Questions