mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-07 08:07:48 +00: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):
|
def handle_get_request(path, offset=None):
|
||||||
headers = {"Authorization": f"Bearer {token}"}
|
headers = {} if token == None else {"Authorization": f"Bearer {token}"}
|
||||||
params = {"since": offset}
|
params = {"since": offset}
|
||||||
url_base = f"https://api.github.com/repos/{repo_owner}/{repo_name}/"
|
url_base = f"https://api.github.com/repos/{repo_owner}/{repo_name}/"
|
||||||
response = requests.get(url_base + path, headers=headers, params=params)
|
response = requests.get(url_base + path, headers=headers, params=params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user