gh api -H 'Accept: application/vnd.github+json' /repos/owner/repo
Category: GitHub CLI
gh api -H 'Accept: application/vnd.github+json' /repos/owner/repo
Make an API call with a custom Accept header
Makes an API call with a custom Accept header (needed for some GitHub API features).