Trying to figure out how I can retrieve the
delete_branch_on_merge field from the GET
/repos/:owner/:repo api call using a GitHub App for authentication.
I’m authenticating with a github app installation that has permissions to view all repos in an org, and Repository permissions including
Metadata/readonly however the field
delete_branch_on_merge is missing from the API response. This field appears to be a default response from the docs here. There is a “Notes” section with a link “Works with GitHub Apps” so I am assuming this field should be available with the permissions specified above.
Heres how I’m authenticating
Using the github apps private key and github app id I’m generating a jwt
Using the JWT I’m fetching an access token at the
Using this token im then making a request to
curl -i \ -H "Authorization: token TOKEN-HERE" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/:owner/:repo
This response only contains a subset of fields indicated by the docs, and does not contain the