MCPcopy Create free account
hub / github.com/electric-sql/electric / shouldRunAllWorkspaces

Function shouldRunAllWorkspaces

scripts/ci/affected-workspaces.mjs:158–166  ·  view source on GitHub ↗
(base, files)

Source from the content-addressed store, hash-verified

156}
157
158function shouldRunAllWorkspaces(base, files) {
159 if (!base || /^0+$/.test(base) || files.length === 0) {
160 return true
161 }
162
163 return files.some((file) =>
164 globalChangePatterns.some((pattern) => matchesPattern(file, pattern))
165 )
166}
167
168function matchesPattern(file, pattern) {
169 if (pattern.endsWith(`/**`)) {

Callers 1

Calls 2

someMethod · 0.80
matchesPatternFunction · 0.70

Tested by

no test coverage detected