Returns a boolean if the actor on the event was a bot.
Reads the app configuration from the given YAML file in the .github
directory of the repository.
Name of the YAML file in the .github
directory
An object of default config options
Configuration object read from the file
Return the owner
, repo
, and number
params for making API requests
against an issue or pull request. The object passed in will be merged with
the repo params.
Params to be merged with the issue params.
Return the owner
and repo
params for making API requests against a
repository.
Params to be merged with the repo params.
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