mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Better url in trymerge (#90583)
example:
old: 453b510b2d/checks
new: https://github.com/pytorch/pytorch/actions/runs/3644518486
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90583
Approved by: https://github.com/kit1980, https://github.com/ZainRizvi
This commit is contained in:
committed by
PyTorch MergeBot
parent
f258753799
commit
60e196c241
6
.github/scripts/trymerge.py
vendored
6
.github/scripts/trymerge.py
vendored
@ -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"]):
|
||||
|
Reference in New Issue
Block a user