Skip to content

Commit

Permalink
Return 200 code on successful action
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Nov 17, 2023
1 parent 1b5bcc4 commit 2e66bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/webhook/github/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ ${isComment ? `Comment by @${comment.user.login}: ${comment?.body}.` : ""}
owner: name,
});

return new Response("ok");
return new Response("ok", { status: 200 });
} catch (error) {
console.error(error);
return new Response(`Something went wrong: ${error}`, { status: 500 });
Expand Down

1 comment on commit 2e66bc7

@vercel
Copy link

@vercel vercel bot commented on 2e66bc7 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.