diff options
author | 2023-05-06 13:36:52 +0100 | |
---|---|---|
committer | 2023-05-06 13:36:52 +0100 | |
commit | e2d0c268732ab6998a90028be9ecd1f8efcce7d8 (patch) | |
tree | ea0fc0176f18331756c19d110ee6edf4e5100898 /bot/exts/utilities/githubinfo.py | |
parent | Bump pre-commit from 3.3.0 to 3.3.1 (#1263) (diff) | |
parent | bump bot-core to 9.6.0 (diff) |
Merge pull request #1260 from shtlrs/pedantic-configuration
Use pydantic for configuration management
Diffstat (limited to 'bot/exts/utilities/githubinfo.py')
-rw-r--r-- | bot/exts/utilities/githubinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/githubinfo.py b/bot/exts/utilities/githubinfo.py index a7979718..4e008e9f 100644 --- a/bot/exts/utilities/githubinfo.py +++ b/bot/exts/utilities/githubinfo.py @@ -26,7 +26,7 @@ ISSUE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/issues/{numbe PR_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/pulls/{number}" if Tokens.github: - REQUEST_HEADERS["Authorization"] = f"token {Tokens.github}" + REQUEST_HEADERS["Authorization"] = f"token {Tokens.github.get_secret_value()}" CODE_BLOCK_RE = re.compile( r"^`([^`\n]+)`" # Inline codeblock |