We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d27c54 commit 6e8f5b2Copy full SHA for 6e8f5b2
triage/weekly_report.py
@@ -178,7 +178,8 @@ def make_req():
178
url = f'https://api.github.com/repos/rust-lang/rust/pulls/{pr}'
179
req = urllib.request.Request(url)
180
req.add_header('Content-Type', 'application/json')
181
- req.add_header('Authorization', f'token {getenv("GITHUB_TOKEN")}')
+ if getenv("GITHUB_TOKEN") is not None:
182
+ req.add_header('Authorization', f'token {getenv("GITHUB_TOKEN")}')
183
184
with urllib.request.urlopen(req) as f:
185
data = json.loads(f.read())
0 commit comments