Skip to content

Commit 334452f

Browse files
committed
Add post to receive webhook events and trigger delta
1 parent a669d47 commit 334452f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/backend/src/plugins/catalog.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export default async function createPlugin(
5252
fn: async () => await sourcegraphProvider.full(),
5353
});
5454

55+
router.post("/sourcegraph/webhook", async (req, _res) => {
56+
await sourcegraphProvider.delta(req.body);
57+
});
58+
5559
await processingEngine.start();
5660

5761
return router;

0 commit comments

Comments
 (0)