get status from github api
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user