(ctx context.Context, run *WorkflowRun, owner, repo, hostname string)
| 1184 | } |
| 1185 | |
| 1186 | func resolveWorkflowRunDisplayName(ctx context.Context, run *WorkflowRun, owner, repo, hostname string) { |
| 1187 | if !strings.HasPrefix(run.WorkflowName, constants.GithubDir) { |
| 1188 | return |
| 1189 | } |
| 1190 | if displayName := resolveWorkflowDisplayName(ctx, run.WorkflowPath, owner, repo, hostname); displayName != "" { |
| 1191 | auditLog.Printf("Resolved workflow display name: %q -> %q", run.WorkflowName, displayName) |
| 1192 | run.WorkflowName = displayName |
| 1193 | } |
| 1194 | } |
| 1195 | |
| 1196 | // resolveWorkflowDisplayName returns the human-readable display name for a workflow file. |
| 1197 | // It first attempts to read the YAML file from the local filesystem (resolving the path |
no test coverage detected