MCPcopy Create free account
hub / github.com/temporalio/temporal / buildGitHubURL

Function buildGitHubURL

tools/flakereport/github.go:230–236  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

228// If jobID == "unknown": https://github.com/{repo}/actions/runs/{runID}
229// Otherwise: https://github.com/{repo}/actions/runs/{runID}/job/{jobID}
230func 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}

Callers 3

TestBuildGitHubURLFunction · 0.85
buildReportsFunction · 0.85
writeFailuresJSONFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuildGitHubURLFunction · 0.68