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

Function fetchJobDetails

pkg/cli/logs_github_api.go:133–140  ·  view source on GitHub ↗

fetchJobDetails gets detailed job information including durations 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

131// Errors from the underlying API call are suppressed so that callers can continue
132// processing even when job data is unavailable (e.g. missing permissions).
133func fetchJobDetails(runID int64, verbose bool) ([]JobInfoWithDuration, error) {
134 jobs, _, err := fetchJobDetailsWithCounts(runID, verbose)
135 if err != nil {
136 // Don't fail the entire operation if we can't get job info
137 return nil, nil
138 }
139 return jobs, nil
140}
141
142// fetchJobStatuses gets the count of failed jobs for a workflow run.
143// Errors from the underlying API call are suppressed so that callers can continue

Callers 1

Calls 1

Tested by

no test coverage detected