aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-11 16:48:25 +0200
committerGravatar GitHub <[email protected]>2021-04-11 16:48:25 +0200
commit51d9b5413ceb8319e0ce9847ee048f112b21fdff (patch)
treed377879311f1e9cc5c021faf51557b740b07aab4 /bot
parentMerge pull request #665 from ToxicKidz/draft-pr-emoji (diff)
Issues: add `type=public`
This will make sure that even if a privileged token is passed we won't leak any private information.
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/issues.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index fa07b674..42ab97c3 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -30,7 +30,7 @@ REQUEST_HEADERS = {
"Accept": "application/vnd.github.v3+json"
}
-REPOSITORY_ENDPOINT = "https://api.github.com/orgs/{org}/repos?per_page=100"
+REPOSITORY_ENDPOINT = "https://api.github.com/orgs/{org}/repos?per_page=100&type=public"
ISSUE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/issues/{number}"
PR_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/pulls/{number}"