MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / setupWebhook

Function setupWebhook

src/services/hooks/webhooks.ts:18–30  ·  view source on GitHub ↗
(webhookConfig: TT.WebhookConfig)

Source from the content-addressed store, hash-verified

16let WEBHOOK_URI: string | undefined
17
18export const setupWebhook = (webhookConfig: TT.WebhookConfig) => {
19 if (!webhookConfig.url) {
20 return
21 }
22 // set webhook uri
23 WEBHOOK_URI = webhookConfig.url
24
25 // set webhook event triggers
26 const events = webhookConfig.events as TT.WebhookConfigEvents
27 for (const eventName of Object.keys(events || {})) {
28 WEBHOOK_EVENTS[eventName] = events[eventName]
29 }
30}
31
32const callWebhookEndpoint = async <B>(bodyObject: B): Promise<void> => {
33 if (!WEBHOOK_URI) {

Callers 2

onTutorialConfigContinueFunction · 0.90
onTutorialConfigNewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected