MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / getBaseBranch

Function getBaseBranch

scripts/validate-changesets.ts:294–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292const getPackageDependencyMap = pipe(Terminal.Terminal, Effect.flatMap(runDependencyCheck));
293
294const 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
301const parseGitDiffOutput = (output: string): readonly string[] =>
302 output.split('\n').filter((file) => file.length > 0);

Callers 3

runGitDiffFunction · 0.85
hasCodeChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected