sopel-irc / sopel-github

GitHub plugin for Sopel
Other
3 stars 13 forks source link

github: don't try to access issue state in comment payloads #95

Closed dgw closed 3 years ago

dgw commented 3 years ago

Adding display of the issue state ('open', 'closed', or 'merged') and type ('issue' or 'PR') broke displaying comments, because the API does not return information about the issue itself when fetching a comment. This is why the title is only appended if ('title' in data). Had to do basically the same thing for the 'state' field.

Resolves #94.