Authenticate and get a GitHub client that can be used to make API calls.
You'll probably want to use context.octokit instead.
context.octokit
Note: app.auth is asynchronous, so it needs to be prefixed with a await to wait for the magic to happen.
app.auth
await
export default (app) => { app.on('issues.opened', async context => { const octokit = await app.auth(); }); }; Copy
export default (app) => { app.on('issues.opened', async context => { const octokit = await app.auth(); }); };
Probot application instance state, which is used to persist
Optional
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.