Catherine Lee
2022-12-12 19:19:56 +00:00
committed by PyTorch MergeBot
parent f258753799
commit 60e196c241
2 changed files with 6489 additions and 21675 deletions

View File

@ -71,6 +71,7 @@ fragment PRCheckSuites on CheckSuiteConnection {
workflow {
name
}
url
}
checkRuns(first: 50) {
nodes {
@ -84,7 +85,6 @@ fragment PRCheckSuites on CheckSuiteConnection {
}
}
conclusion
url
}
cursor
}
@ -525,7 +525,7 @@ def add_workflow_conclusions(
conclusions[workflow_name] = WorkflowCheckState(
name=workflow_name,
status=workflow_conclusion,
url=node["url"])
url=workflow_run["url"])
has_failing_check = False
while checkruns is not None:
for checkrun_node in checkruns["nodes"]:
@ -550,7 +550,7 @@ def add_workflow_conclusions(
conclusions[workflow_name] = WorkflowCheckState(
name=workflow_name,
status="FAILURE",
url=node["url"])
url=workflow_run["url"])
add_conclusions(checksuites["edges"])
while bool(checksuites["pageInfo"]["hasNextPage"]):