(error: unknown)
| 1007 | } |
| 1008 | |
| 1009 | function prCloseCoverageProofFailureIsTerminal(error: unknown): boolean { |
| 1010 | const text = error instanceof Error ? error.message : String(error); |
| 1011 | return /\b(?:issue|pull) not found: #\d+\b/i.test(text) || /\bHTTP 404\b/i.test(text); |
| 1012 | } |
| 1013 | |
| 1014 | function validatePrCloseCoverageCoveringFreshness({ |
| 1015 | result, |
no outgoing calls
no test coverage detected