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

Function resolveWorkflowsDir

apps/api/scripts/lint-meta/context.ts:95–113  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

93 * the workflows that actually run for this code instead of silently no-oping.
94 */
95export function resolveWorkflowsDir(root: string): string {
96 let current = root;
97
98 for (;;) {
99 const candidate = join(current, ".github", "workflows");
100
101 if (existsSync(candidate)) {
102 return candidate;
103 }
104
105 const parent = dirname(current);
106
107 if (parent === current) {
108 return join(root, ".github", "workflows");
109 }
110
111 current = parent;
112 }
113}
114
115export function buildContext(root: string): IMetaContext {
116 const sourceFiles = [

Callers 1

buildContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected