The context of the event that was triggered, including the payload and helpers for extracting information can be passed to GitHub API calls.
module.exports = app => { app.on('push', context => { context.log.info('Code was pushed to the repo, what should we do with it?'); }); };
{octokit} octokit - An Octokit instance
{payload} payload - The webhook event payload
{logger} log - A logger
context.event is deprecated, use context.name instead.
context.event
context.name
context.github is deprecated. Use context.octokit instead.
context.github
context.octokit
The context of the event that was triggered, including the payload and helpers for extracting information can be passed to GitHub API calls.
module.exports = app => { app.on('push', context => { context.log.info('Code was pushed to the repo, what should we do with it?'); }); };
{octokit} octokit - An Octokit instance
{payload} payload - The webhook event payload
{logger} log - A logger