Skip to content

Commit

Permalink
Allow changelog to run without a token (portapack-mayhem#1312)
Browse files Browse the repository at this point in the history
* Allow code to run without a token

* Reverted submodule change by mistake
  • Loading branch information
jLynx authored Jul 27, 2023
1 parent 37aa9c0 commit 8c565bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def print_nightly_changelog():


def handle_get_request(path, offset=None):
headers = {"Authorization": f"Bearer {token}"}
headers = {} if token == None else {"Authorization": f"Bearer {token}"}
params = {"since": offset}
url_base = f"https://api.github.com/repos/{repo_owner}/{repo_name}/"
response = requests.get(url_base + path, headers=headers, params=params)
Expand Down

0 comments on commit 8c565bb

Please sign in to comment.