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

Function buildRunHTMLURL

pkg/cli/view_command.go:186–194  ·  view source on GitHub ↗

buildRunHTMLURL constructs the GitHub Actions HTML URL for a workflow run. Returns an empty string when owner or repo are unknown.

(hostname, owner, repo string, runID int64)

Source from the content-addressed store, hash-verified

184// buildRunHTMLURL constructs the GitHub Actions HTML URL for a workflow run.
185// Returns an empty string when owner or repo are unknown.
186func buildRunHTMLURL(hostname, owner, repo string, runID int64) string {
187 if owner == "" || repo == "" {
188 return ""
189 }
190 if hostname == "" {
191 hostname = "github.com"
192 }
193 return fmt.Sprintf("https://%s/%s/%s/actions/runs/%d", hostname, owner, repo, runID)
194}
195
196// renderViewSafeOutputs reads safe-output-items.jsonl from runDir and prints a
197// human-friendly summary of every item that was created during the run.

Calls

no outgoing calls