Options for the authenticated client, including the
octokit instance and a logger.
OptionalinstallationId?: 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.octokitinstead.Note:
app.authis asynchronous, so it needs to be prefixed with aawaitto wait for the magic to happen.