(content: string, workflowMarkers: string[])
| 72 | } |
| 73 | |
| 74 | function extractPreambleBeforeWorkflow(content: string, workflowMarkers: string[]): string { |
| 75 | const markerIndexes = workflowMarkers |
| 76 | .map(marker => content.indexOf(marker)) |
| 77 | .filter(index => index >= 0); |
| 78 | expect(markerIndexes.length).toBeGreaterThan(0); |
| 79 | return content.slice(0, Math.min(...markerIndexes)); |
| 80 | } |
| 81 | |
| 82 | function isRepoRootSymlink(candidateDir: string): boolean { |
| 83 | try { |
no outgoing calls
no test coverage detected