MCPcopy Create free account
hub / github.com/github/gh-aw / fetchJobStatuses

Function fetchJobStatuses

pkg/cli/logs_github_api.go:145–152  ·  view source on GitHub ↗

fetchJobStatuses gets the count of failed jobs for a workflow run. Errors from the underlying API call are suppressed so that callers can continue processing even when job data is unavailable (e.g. missing permissions).

(runID int64, verbose bool)

Source from the content-addressed store, hash-verified

143// Errors from the underlying API call are suppressed so that callers can continue
144// processing even when job data is unavailable (e.g. missing permissions).
145func fetchJobStatuses(runID int64, verbose bool) (int, error) {
146 _, failedJobs, err := fetchJobDetailsWithCounts(runID, verbose)
147 if err != nil {
148 // Don't fail the entire operation if we can't get job info
149 return 0, nil
150 }
151 return failedJobs, nil
152}
153
154// ListWorkflowRunsOptions holds the options for listWorkflowRunsWithPagination
155type ListWorkflowRunsOptions struct {

Callers 3

DownloadWorkflowLogsFunction · 0.85

Calls 1

Tested by

no test coverage detected