(runID int64, err error, output []byte)
| 1174 | } |
| 1175 | |
| 1176 | func 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 | |
| 1186 | func resolveWorkflowRunDisplayName(ctx context.Context, run *WorkflowRun, owner, repo, hostname string) { |
| 1187 | if !strings.HasPrefix(run.WorkflowName, constants.GithubDir) { |
no test coverage detected