sopel-irc / sopel-github

GitHub plugin for Sopel
Other
3 stars 13 forks source link

git.io is closed #102

Closed dgw closed 2 years ago

dgw commented 2 years ago

GitHub shut down new links at git.io this week with no advance warning. This plugin has been using the service to shorten the URLs in webhook events:

https://github.com/sopel-irc/sopel-github/blob/5fe16e4f9ee382889c92928b92a14214226bbb2a/sopel_modules/github/formatting.py#L573

We need an alternative, and I'm sad to say the only viable options might be TinyURL or Bitly. Those are the only URL shorteners I can think of that have lasted longer than git.io's 10 years.

Fortunately nothing is broken, since this plugin also gracefully handles failure to shorten links. Sending the POST request is now a waste of time (because it is guaranteed to be rejected with an error), but webhooks and such will still be sent to IRC with the original URL.

dgw commented 2 years ago

Having had a few months to think about this, I'm still not inclined to switch this plugin over to TinyURL or Bitly. Best solution for now is going to be removing the link-shortener function in a maintenance release.

The feature can always be restored if a decent alternative comes to light.