Skip to content

Commit

Permalink
utils: Link to GitHub's authentication documentation
Browse files Browse the repository at this point in the history
This can help with understanding the parameters and updating them if
they ever need to change.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed May 31, 2023
1 parent 26e906b commit 3c6a83f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.py
Expand Up @@ -141,6 +141,7 @@ def get_gh_json(endpoint):
"""
curl_cmd = ['curl', '-LSs']
if 'GITHUB_TOKEN' in os.environ:
# https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api
curl_cmd += [
'-H',
'Accept: application/vnd.github+json',
Expand Down

0 comments on commit 3c6a83f

Please sign in to comment.