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

Function resolveWorkflowRunDisplayName

pkg/cli/audit.go:1186–1194  ·  view source on GitHub ↗
(ctx context.Context, run *WorkflowRun, owner, repo, hostname string)

Source from the content-addressed store, hash-verified

1184}
1185
1186func 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

Callers 1

fetchWorkflowRunMetadataFunction · 0.85

Calls 2

PrintfMethod · 0.45

Tested by

no test coverage detected