From 20d595e06c719a958ea823e8f70ce96804449d83 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 8 Mar 2023 09:26:25 +0000 Subject: [PATCH] Add head_sha for ListWorkflowRunsOptions (fixes: #2687) GitHub added this option to the following API: /repos/{owner}/{repo}/actions/runs Only returns workflow runs that are associated with the specified head_sha. Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- github/actions_workflow_runs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/github/actions_workflow_runs.go b/github/actions_workflow_runs.go index 6241dc629f..0cda90d41b 100644 --- a/github/actions_workflow_runs.go +++ b/github/actions_workflow_runs.go @@ -60,6 +60,7 @@ type ListWorkflowRunsOptions struct { Event string `url:"event,omitempty"` Status string `url:"status,omitempty"` Created string `url:"created,omitempty"` + HeadSHA string `url:"head_sha,omitempty"` ListOptions }