This commit is contained in:
s3lph 2023-10-05 01:47:01 +02:00
parent ec8cd80063
commit 00cd0ef70b

View file

@ -131,11 +131,11 @@ def main():
post_body: str = json.dumps({'description': augmented_changelog}) post_body: str = json.dumps({'description': augmented_changelog})
gitlab_release_api_url: str = \ gitlab_release_api_url: str = \
f'https://gitlab.com/api/v4/projects/{project_id}/repository/tags/{release_tag}/release' f'https://gitlab.com/api/v4/projects/{project_id}/releases'
headers: Dict[str, str] = { headers: Dict[str, str] = {
'Private-Token': api_token, 'Private-Token': api_token,
'Content-Type': 'application/json; charset=utf-8', 'Content-Type': 'application/json; charset=utf-8',
'User-Agent': USER_AGENT 'User-Agent': 'curl/7.70.0'
} }
request = urllib.request.Request( request = urllib.request.Request(