MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isAllowedBeforeApproval

Function isAllowedBeforeApproval

tools/spec-loop/hooks/gate.ts:151–156  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

149}
150
151function isAllowedBeforeApproval(path: string): boolean {
152 return (
153 ALWAYS_ALLOW_PREFIXES.some((prefix) => path.startsWith(prefix)) ||
154 isTest(path)
155 );
156}
157
158function isSource(path: string): boolean {
159 return SOURCE_EXTENSIONS.has(extname(path)) && !isAllowedBeforeApproval(path);

Callers 1

isSourceFunction · 0.85

Calls 1

isTestFunction · 0.85

Tested by

no test coverage detected