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('Code was pushed to the repo, what should we do with it?'); }); };
{github} github - A GitHub API client
{payload} payload - The webhook event payload
{logger} log - A logger
Generated using TypeDoc
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('Code was pushed to the repo, what should we do with it?'); }); };
{github} github - A GitHub API client
{payload} payload - The webhook event payload
{logger} log - A logger