()
| 292 | const getPackageDependencyMap = pipe(Terminal.Terminal, Effect.flatMap(runDependencyCheck)); |
| 293 | |
| 294 | const getBaseBranch = (): string => { |
| 295 | const envVar = 'GITHUB_BASE_REF'; |
| 296 | const proc: Record<string, unknown> = globalThis as never; |
| 297 | const env = (proc['process'] as Record<string, Record<string, string>> | undefined)?.['env']; |
| 298 | return (env?.[envVar] as string | undefined) ?? 'origin/main'; |
| 299 | }; |
| 300 | |
| 301 | const parseGitDiffOutput = (output: string): readonly string[] => |
| 302 | output.split('\n').filter((file) => file.length > 0); |
no outgoing calls
no test coverage detected