question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warn developer when using un-registered hook

See original GitHub issue

Feature 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gr2mcommented, Oct 21, 2019

Shouldn’t that one work?

https://developer.github.com/v3/apps/#response-1

GET /app responds with an array of events the app is subscribed to

<div>GitHub Developer</div><div>GitHub Apps</div><div>Get started with one of our guides, or jump straight into the API documentation.</div>
0reactions
probotbotcommented, Dec 19, 2019

🎉 This issue has been resolved in version 9.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found