MCPcopy
hub / github.com/prisma/prisma / getPatchBranch

Function getPatchBranch

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

Source from the content-addressed store, hash-verified

884}
885
886function getPatchBranch() {
887 if (process.env.GITHUB_REF_NAME) {
888 const versions = getSemverFromPatchBranch(process.env.GITHUB_REF_NAME)
889 console.debug('versions from patch branch:', versions)
890
891 if (versions !== undefined) {
892 return process.env.GITHUB_REF_NAME
893 }
894 }
895
896 return null
897}
898
899type CommitInfo = {
900 hash: string

Callers 1

publishFunction · 0.85

Calls 2

getSemverFromPatchBranchFunction · 0.85
debugMethod · 0.45

Tested by

no test coverage detected