probot.log()
, app.log()
and context.log()
are aliasing .log.info()
.
We will probably remove the aliasing in future.
Authenticate and get a GitHub client that can be used to make API calls.
You'll probably want to use context.github
instead.
Note: app.auth
is asynchronous, so it needs to be prefixed with a
await
to wait for the magic to happen.
module.exports = ({ app }) => {
app.on('issues.opened', async context => {
const github = await app.auth();
});
};
An authenticated GitHub API client
cert
options is deprecated. UseprivateKey
instead