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

Function fetchGitOrigin

scripts/validate-release.ts:37–43  ·  view source on GitHub ↗
(root: string, baseBranch: string)

Source from the content-addressed store, hash-verified

35);
36
37const fetchGitOrigin = (root: string, baseBranch: string) =>
38 pipe(
39 Command.make('git', 'fetch', 'origin', `${baseBranch}:${baseBranch}`),
40 Command.workingDirectory(root),
41 Command.exitCode,
42 Effect.catchAll(() => Effect.void)
43 );
44
45const getRootAndBaseBranch = Effect.all([rootDir, getEnvVar('GITHUB_BASE_REF')]);
46

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected