buildGitHubURL constructs GitHub Actions URL from run/job IDs If jobID == "unknown": https://github.com/{repo}/actions/runs/{runID} Otherwise: https://github.com/{repo}/actions/runs/{runID}/job/{jobID}
(repo, runID, jobID string)
| 228 | // If jobID == "unknown": https://github.com/{repo}/actions/runs/{runID} |
| 229 | // Otherwise: https://github.com/{repo}/actions/runs/{runID}/job/{jobID} |
| 230 | func buildGitHubURL(repo, runID, jobID string) string { |
| 231 | baseURL := fmt.Sprintf("https://github.com/%s/actions/runs/%s", repo, runID) |
| 232 | if jobID != "unknown" && jobID != "" { |
| 233 | return fmt.Sprintf("%s/job/%s", baseURL, jobID) |
| 234 | } |
| 235 | return baseURL |
| 236 | } |
| 237 | |
| 238 | // fetchCommitMeta fetches commit title, author, and changed file list for a single commit SHA. |
| 239 | // Uses: GET /repos/{owner}/{repo}/commits/{sha} |
no outgoing calls