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)
| 184 | // buildRunHTMLURL constructs the GitHub Actions HTML URL for a workflow run. |
| 185 | // Returns an empty string when owner or repo are unknown. |
| 186 | func 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. |
no outgoing calls