()
| 311 | } |
| 312 | |
| 313 | function 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 | |
| 322 | function useEnvAgent() { |
| 323 | return process.env["AGENT"] || undefined |
no test coverage detected