MCPcopy
hub / github.com/prisma/prisma / areEcosystemTestsPassing

Function areEcosystemTestsPassing

scripts/ci/publish.ts:873–884  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

871}
872
873async function areEcosystemTestsPassing(tag: string): Promise<boolean> {
874 let svgUrl = 'https://github.com/prisma/ecosystem-tests/workflows/test/badge.svg?branch='
875
876 if (tag === 'patch-dev') {
877 svgUrl += tag
878 } else {
879 svgUrl += 'dev'
880 }
881
882 const res = await fetch(svgUrl).then((r) => r.text())
883 return res.includes('passing')
884}
885
886function getPatchBranch() {
887 if (process.env.GITHUB_REF_NAME) {

Callers 1

publishFunction · 0.85

Calls 3

includesMethod · 0.80
thenMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected