GitHub provides APIs for automation
The GitHub REST and GraphQL APIs allow applications and scripts to interact with repositories, issues, pull requests, users and other GitHub resources.
Choose the right API
REST is straightforward for resource-oriented operations. GraphQL can request a connected set of fields in one query and is useful when you need precise data selection.
Authentication and permissions
API clients should use an appropriate authenticated identity and request only the permissions they need. Never hard-code access tokens in source code.