MCPcopy
hub / github.com/prisma/prisma / getPrismaBranch

Function getPrismaBranch

scripts/ci/publish.ts:861–871  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

859}
860
861async function getPrismaBranch(): Promise<string | undefined> {
862 if (process.env.GITHUB_REF_NAME) {
863 return process.env.GITHUB_REF_NAME
864 }
865 try {
866 // TODO: this can probably be simplified, we don't publish locally, remove?
867 return await runResult('.', 'git rev-parse --symbolic-full-name --abbrev-ref HEAD')
868 } catch (e) {}
869
870 return undefined
871}
872
873async function areEcosystemTestsPassing(tag: string): Promise<boolean> {
874 let svgUrl = 'https://github.com/prisma/ecosystem-tests/workflows/test/badge.svg?branch='

Callers 1

publishFunction · 0.85

Calls 1

runResultFunction · 0.85

Tested by

no test coverage detected