get status from github api

This commit is contained in:
Bryan Gerlach
2026-03-11 00:15:15 -05:00
parent 8adecbfc1d
commit e32ed80003

View File

@@ -310,7 +310,7 @@ def generator_view(request):
'Accept': 'application/vnd.github+json', 'Accept': 'application/vnd.github+json',
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer '+_settings.GHBEARER, 'Authorization': 'Bearer '+_settings.GHBEARER,
'X-GitHub-Api-Version': '2022-11-28' 'X-GitHub-Api-Version': '2026-03-10'
} }
new_github_run = GithubRun( new_github_run = GithubRun(
uuid=myuuid, uuid=myuuid,
@@ -472,7 +472,7 @@ def startgh(request):
'Accept': 'application/vnd.github+json', 'Accept': 'application/vnd.github+json',
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer '+_settings.GHBEARER, 'Authorization': 'Bearer '+_settings.GHBEARER,
'X-GitHub-Api-Version': '2022-11-28' 'X-GitHub-Api-Version': '2026-03-10'
} }
response = requests.post(url, json=data, headers=headers) response = requests.post(url, json=data, headers=headers)
print(response) print(response)