mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Allow changelog to run without a token (#1312)
* Allow code to run without a token * Reverted submodule change by mistake
This commit is contained in:
parent
37aa9c046f
commit
8c565bbf15
2
.github/workflows/changelog.py
vendored
2
.github/workflows/changelog.py
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user