get status from github api
This commit is contained in:
@@ -310,7 +310,7 @@ def generator_view(request):
|
||||
'Accept': 'application/vnd.github+json',
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer '+_settings.GHBEARER,
|
||||
'X-GitHub-Api-Version': '2022-11-28'
|
||||
'X-GitHub-Api-Version': '2026-03-10'
|
||||
}
|
||||
new_github_run = GithubRun(
|
||||
uuid=myuuid,
|
||||
@@ -472,7 +472,7 @@ def startgh(request):
|
||||
'Accept': 'application/vnd.github+json',
|
||||
'Content-Type': 'application/json',
|
||||
'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)
|
||||
print(response)
|
||||
|
||||
Reference in New Issue
Block a user