aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-20 09:38:49 +0200
committerGravatar ks129 <[email protected]>2020-12-20 09:38:49 +0200
commit477af4efe7a0ed155bf6f5805a2d0fd3674e0e6f (patch)
tree89c3ee20e80ae7106f5cac473790d25abe4fe8c1
parentFix silence tests (diff)
Add GitHub API key to config as environment variable
-rw-r--r--bot/constants.py1
-rw-r--r--config-default.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py
index c4bb6b2d6..25a4c4d09 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -493,6 +493,7 @@ class Keys(metaclass=YAMLGetter):
section = "keys"
site_api: Optional[str]
+ github: Optional[str]
class URLs(metaclass=YAMLGetter):
diff --git a/config-default.yml b/config-default.yml
index 3f3f66962..ca89bb639 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -323,6 +323,7 @@ filter:
keys:
site_api: !ENV "BOT_API_KEY"
+ github: !ENV "GITHUB_API_KEY"
urls: