Options for the authenticated client, including the
octokit
instance and a logger.
Optional
installationId?: numberID of the installation, which can be extracted from
context.payload.installation.id
. If called without this parameter, the
client wil authenticate as the app
instead of as a specific installation, which means it can only be used for
app APIs.
A logger instance, typically created with getLog()
.
The Octokit instance to use for authentication.
An authenticated GitHub API client
Authenticate and get a GitHub client that can be used to make API calls.
You'll probably want to use
context.octokit
instead.Note:
app.auth
is asynchronous, so it needs to be prefixed with aawait
to wait for the magic to happen.