Skip to content

Commit

Permalink
Merge pull request #124 from sopel-irc/rm-old-secret-setting
Browse files Browse the repository at this point in the history
github: remove obsolete `secret` setting
  • Loading branch information
dgw authored Apr 7, 2023
2 parents 4987fa1 + 835cdf6 commit 8072258
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sopel_modules/github/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
class GitHubSection(StaticSection):
client_id = ValidatedAttribute('client_id', default=None)
client_secret = ValidatedAttribute('client_secret', default=None)
secret = ValidatedAttribute('secret', default=None) # TODO remove in 0.3.0 or thereabouts
webhook = ValidatedAttribute('webhook', bool, default=False)
webhook_host = ValidatedAttribute('webhook_host', default='0.0.0.0')
webhook_port = ValidatedAttribute('webhook_port', default='3333')
Expand All @@ -94,13 +93,6 @@ def setup(sopel):
if sopel.config.github.webhook:
setup_webhook(sopel)

if not sopel.config.github.client_secret:
if sopel.config.github.secret:
sopel.config.github.client_secret = sopel.config.github.secret
del sopel.config.github.secret
sopel.config.save()
tools.stderr("[GitHub] Migrated `secret` to `client_secret` in config.")


def shutdown(sopel):
shutdown_webhook(sopel)
Expand Down

0 comments on commit 8072258

Please sign in to comment.