(files: FileChange[])
| 159 | } |
| 160 | |
| 161 | function 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 | |
| 170 | function getCurrentRepositoryFullName(): string { |
| 171 | const repository = github.context.payload.repository as { full_name?: string } | undefined; |
no outgoing calls
no test coverage detected
searching dependent graphs…