A helper function used in testing that resets the cached result of /app.
Finds a private key through various user-(un)specified methods. Order of precedence:
.pemextension in current working dir
Explicit, user-defined path to keyfile
The base event name refers to the part before
the first period mark (e.g. the
issues part in
false when the application is not subscribed to a webhook
event. Otherwise, returns
undefined if Probot failed to
retrieve GitHub App metadata.
Note: Probot will only check against a list of events known to be in the
GET /app response. Therefore, only the
false value should be considered
Check if an application is subscribed to an event.
false if the app is not subscribed to an event. Otherwise,
undefined if the webhook-event-check feature is
disabled or if Probot failed to retrieve the GitHub App's metadata.
Generated using TypeDoc