MCPcopy Index your code
hub / github.com/anomalyco/opencode / useEnvRunUrl

Function useEnvRunUrl

github/index.ts:313–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311}
312
313function useEnvRunUrl() {
314 const { repo } = useContext()
315
316 const runId = process.env["GITHUB_RUN_ID"]
317 if (!runId) throw new Error(`Environment variable "GITHUB_RUN_ID" is not set`)
318
319 return `/${repo.owner}/${repo.repo}/actions/runs/${runId}`
320}
321
322function useEnvAgent() {
323 return process.env["AGENT"] || undefined

Callers 2

createCommentFunction · 0.85
footerFunction · 0.85

Calls 1

useContextFunction · 0.85

Tested by

no test coverage detected