Skip to content

Commit

Permalink
Fix webhook header
Browse files Browse the repository at this point in the history
  • Loading branch information
Holi0317 committed Feb 17, 2024
1 parent 912dcba commit 222235a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ router.post("/github/webhook", async (req, env) => {
const octoApp = useOctoApp(env);

await octoApp.webhooks.verifyAndReceive({
id: unwrap(req.headers.get("x-request-id")),
id: unwrap(req.headers.get("x-github-hook-id")),
name: unwrap(req.headers.get("x-github-event")) as any,
signature: unwrap(req.headers.get("x-hub-signature")),
payload: await req.text(),
Expand Down

0 comments on commit 222235a

Please sign in to comment.