Warn developer when using un-registered hook
See original GitHub issueFeature Request
Warn developers when they are attempting to hook onto an event that the app/installation is not subscribed to.
I don’t remember where I saw this, but I believe there is an endpoint that returns all the events an installation (app) is subscribed to.
Is your feature request related to a problem? Please describe.
This would warn users in situations like #969 #933 #857 and any other related issue below 857 (i’m not gonna search all day 😄 ).
Example
app.on('issues.opened', async context => {
const issueComment = context.issue({ body: 'Thanks for opening this issue!' })
return context.github.issues.createComment(issueComment)
})
// logged to console:
// [WARN]: Installation is not subscribed to `issues` event.
// : See <link here> on how to subscribe to 'issues.opened' event.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Webhook not removed from Reolink camera after ... - GitHub
Describe the bug. There are webhook calls from the camera after i removed it and readded it in home assistant. 2021-01-23 22:32:23 WARNING...
Read more >react-hook-form keep validating field after unregister
I'm having some issues with react-hook-form where after unregistering a field and keeping its current value, my form won't submit since all ...
Read more >Solved: 8841 Phone re-registering - Cisco Community
Solved: We have a set of new 8841 phones that re-register when going off-hook/on-hook. I've got a TAC case open, however we have...
Read more >unregistered_post_type | Hook
Fires after a post type was unregistered. ... do_action( 'unregistered_post_type', string $post_type ). Fires after a post type was unregistered.
Read more >Registration inline hook - Okta Developer
In the following example, the external service code parses requests from Okta and responds with commands that indicate whether the end user's email...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Shouldn’t that one work?
https://developer.github.com/v3/apps/#response-1
GET /app
responds with an array ofevents
the app is subscribed to🎉 This issue has been resolved in version 9.7.0 🎉
The release is available on:
Your semantic-release bot 📦🚀