Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add onAny and onError methods from @octokit/webhooks #1480

Merged
merged 5 commits into from Mar 1, 2021

Conversation

wolfy1339
Copy link
Collaborator

No description provided.

@wolfy1339 wolfy1339 requested a review from a team as a code owner February 28, 2021 19:55
@request-info
Copy link

request-info bot commented Feb 28, 2021

Thanks for opening this, but we'd appreciate a little more information. Could you update it with more details?

Copy link
Contributor

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the docs

probot/docs/webhooks.md

Lines 43 to 51 in 2c97c99

You can also use `app.webhooks.onAny()` to listen for any event that your app is subscribed to:
```js
module.exports = (app) => {
app.webhooks.onAny(async (context) => {
context.log.info({ event: context.name, action: context.payload.action });
});
};
```

@gr2m gr2m merged commit 9a24f9d into probot:master Mar 1, 2021
@github-actions
Copy link

github-actions bot commented Mar 1, 2021

🎉 This PR is included in version 11.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants