(
options: { dispatch: CommitFindingDispatch; repairRepo: string },
result: { stdout?: string | null; stderr?: string | null; error?: Error },
)
| 794 | } |
| 795 | |
| 796 | function dispatchFailureError( |
| 797 | options: { dispatch: CommitFindingDispatch; repairRepo: string }, |
| 798 | result: { stdout?: string | null; stderr?: string | null; error?: Error }, |
| 799 | ): Error & { stdout: string; stderr: string } { |
| 800 | const stdout = result.stdout ?? ""; |
| 801 | const stderr = result.stderr ?? ""; |
| 802 | const detail = stderr || stdout || result.error?.message || "unknown gh error"; |
| 803 | return Object.assign( |
| 804 | new Error(`failed to dispatch ${options.dispatch.sha} to ${options.repairRepo}: ${detail}`), |
| 805 | { stdout, stderr }, |
| 806 | ); |
| 807 | } |
| 808 | |
| 809 | function dispatchCommitFinding(options: { |
| 810 | dispatch: CommitFindingDispatch; |
no outgoing calls
no test coverage detected