You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, my RightHook::App (you know the one) occasionally gets its on_issue method called with a nil value for the third argument (issue_json). I think this is because of the ping event, which sends to every webhook a payload like this:
{
"zen": "Non-blocking is better than blocking.",
"hook_id": 2341839
}
with this header:
X-GitHub-Event: ping
So even though the subscription is for issue events, we sometimes get json without an issue key.
One option would be for my app to just handle the case of nil json itself, but maybe it should be built into right_hook. What do you think?
The text was updated successfully, but these errors were encountered:
Right now, my RightHook::App (you know the one) occasionally gets its
on_issue
method called with anil
value for the third argument (issue_json
). I think this is because of the ping event, which sends to every webhook a payload like this:with this header:
So even though the subscription is for
issue
events, we sometimes get json without anissue
key.One option would be for my app to just handle the case of
nil
json itself, but maybe it should be built intoright_hook
. What do you think?The text was updated successfully, but these errors were encountered: