sopel-irc / sopel-github

GitHub plugin for Sopel
Other
3 stars 13 forks source link

formatting: fix ref field names #117

Closed dgw closed 1 year ago

dgw commented 1 year ago

After pushing v0.4.7 and SSHing into the main Sopel instance for Libera (to update the plugin there), I saw that the console log showed a KeyError for base_ref_name in the push handler. Lo and behold, GitHub's webhook documentation makes no mention of that or the ref_name field.

It's clearly been a while since this code was touched (sometime before Max split things into multiple files). Consulting Wayback Machine caches of the old developer.github.com doesn't actually show me any payload examples with the field names that were in the code here. Maybe this stuff was always broken, and no one noticed because hardly anyone:

1) uses webhooks; and 2) sends Sopel the push event type

That's my guess. This is an obscure feature of the plugin, certainly.

Still to do: