Git and GitHub
Scope: ServerRpc (server-wide operations tied to the Client)
For an overview of RPC and the list of all RPC pages, see RPC.
gitHubRepository
gitHubRepository()->getById() resolves an owner and name from a GitHub repository ID, and lookupBranchPullRequest() searches the given repositories, in priority order, for a pull request from the given head owner and branch. Both take authInfo as is. The getById() result contains the owner and name in repository, or null when the repository isn’t found. The pull request lookup status is one of found, no-token, no-pr, or lookup-failed. Unknown values are kept as strings, so they don’t throw. pullRequest is an associative array when a pull request is found, otherwise null.
Last modified on November 19, 2026