GitHub API

Make GitHub API calls

github
api
rest

Command

gh api /user

Explanation

Make direct calls to the GitHub REST API for advanced operations not covered by other commands.

Examples

Get user info

gh api /user

Get repo info

gh api /repos/owner/repo

Create issue via API

gh api /repos/owner/repo/issues --method POST