(reviewId: string)
| 236 | ); |
| 237 | } |
| 238 | |
| 239 | function createCodeReviewErrorMetadata(params: CreateReviewParams) { |
| 240 | return { |
| 241 | owner: params.owner, |
| 242 | platformIntegrationId: params.platformIntegrationId, |
| 243 | repoFullName: params.repoFullName, |
| 244 | prNumber: params.prNumber, |
| 245 | prUrl: params.prUrl, |
| 246 | headSha: params.headSha, |
| 247 | platform: params.platform, |
| 248 | platformProjectId: params.platformProjectId, |
| 249 | manualConfig: params.manualConfig |
| 250 | ? { |
| 251 | outputMode: params.manualConfig.outputMode, |
| 252 | hasInstructions: params.manualConfig.instructions !== null, |
| 253 | modelSlug: params.manualConfig.agentConfig.model_slug, |
| 254 | thinkingEffort: params.manualConfig.agentConfig.thinking_effort ?? null, |
| 255 | } |
| 256 | : null, |
| 257 | }; |
no test coverage detected