utils/github: fix errors with check suites without workflow runs
This commit is contained in:
parent
a511af16f3
commit
17ee0eefb8
@ -312,7 +312,7 @@ module GitHub
|
|||||||
commit_node = result["repository"]["pullRequest"]["commits"]["nodes"].first
|
commit_node = result["repository"]["pullRequest"]["commits"]["nodes"].first
|
||||||
check_suite = if commit_node.present?
|
check_suite = if commit_node.present?
|
||||||
commit_node["commit"]["checkSuites"]["nodes"].select do |suite|
|
commit_node["commit"]["checkSuites"]["nodes"].select do |suite|
|
||||||
suite["workflowRun"]["workflow"]["databaseId"] == workflow_id_num
|
suite.dig("workflowRun", "workflow", "databaseId") == workflow_id_num
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user