({ thread, message, platformIntegration })
| 304 | async withAuthContext({ platformIntegration, fn }) { |
| 305 | const installationId = platformIntegration.platform_installation_id; |
| 306 | if (!installationId) throw new Error('GitHub installation is unavailable for runtime use'); |
| 307 | await assertGitHubInstallationRuntimeAuthorized( |
| 308 | installationId, |
| 309 | platformIntegration.github_app_type ?? 'standard', |
| 310 | platformIntegration.id |
| 311 | ); |
| 312 | return await fn(); |
| 313 | }, |
| 314 | async getConversationContext({ thread, triggerMessage, platformIntegration }) { |
nothing calls this directly
no test coverage detected