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

Function classifyWorkflowRunMetadataError

pkg/cli/audit.go:1176–1184  ·  view source on GitHub ↗
(runID int64, err error, output []byte)

Source from the content-addressed store, hash-verified

1174}
1175
1176func classifyWorkflowRunMetadataError(runID int64, err error, output []byte) error {
1177 outputStr := string(output)
1178 if errorutil.IsNotFoundError(err) ||
1179 errorutil.IsNotFoundError(errors.New(outputStr)) ||
1180 strings.Contains(outputStr, "Could not resolve") {
1181 return fmt.Errorf("workflow run %d not found. Please verify the run ID is correct and that you have access to the repository", runID)
1182 }
1183 return fmt.Errorf("failed to fetch run metadata: %w", err)
1184}
1185
1186func resolveWorkflowRunDisplayName(ctx context.Context, run *WorkflowRun, owner, repo, hostname string) {
1187 if !strings.HasPrefix(run.WorkflowName, constants.GithubDir) {

Callers 1

fetchWorkflowRunMetadataFunction · 0.85

Calls 2

IsNotFoundErrorFunction · 0.92
ErrorfMethod · 0.45

Tested by

no test coverage detected