MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / isSetupPR

Function isSetupPR

code-scan-action/src/main.ts:161–168  ·  view source on GitHub ↗
(files: FileChange[])

Source from the content-addressed store, hash-verified

159}
160
161function isSetupPR(files: FileChange[]): boolean {
162 const setupWorkflowPath = '.github/workflows/promptfoo-code-scan.yml';
163 return (
164 files.length === 1 &&
165 files[0].path === setupWorkflowPath &&
166 files[0].status === FileChangeStatus.ADDED
167 );
168}
169
170function getCurrentRepositoryFullName(): string {
171 const repository = github.context.payload.repository as { full_name?: string } | undefined;

Callers 1

runCodeScanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…