Skip to content

Commit 4ffd583

Browse files
committed
Safeguard against GitHub omitting the whole array in the response
1 parent a6d60fb commit 4ffd583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github_api.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ end
230230

231231
struct WorkflowRuns
232232
include JSON::Serializable
233-
property workflow_runs : Array(WorkflowRun)
233+
property workflow_runs : Array(WorkflowRun) = [] of WorkflowRun
234234

235235
cached_array def self.for_workflow(
236236
repo_owner : DowncaseString, repo_name : DowncaseString, workflow : String,

0 commit comments

Comments
 (0)