(body: Record<string, unknown>)
| 127 | } |
| 128 | |
| 129 | private async turboCommit(body: Record<string, unknown>) { |
| 130 | const response = await this.turboFetch(this.commitEndpoint, { |
| 131 | method: 'POST', |
| 132 | headers: { 'Content-Type': 'application/json' }, |
| 133 | body: JSON.stringify(body), |
| 134 | }); |
| 135 | |
| 136 | return (await response.json()) as { |
| 137 | sha: string; |
| 138 | url: string; |
| 139 | branch: string; |
| 140 | workflow?: { complete: boolean; pull_request: { number: number; url?: string } | null }; |
| 141 | }; |
| 142 | } |
| 143 | |
| 144 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 145 | private shouldFallBack(error: any) { |
no outgoing calls
no test coverage detected