Skip to content

Commit dc73307

Browse files
committed
updates run condition for ProjectsV2ItemEvent in /v1/github/webhooks​
1 parent b50102c commit dc73307

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bun.lockb

0 Bytes
Binary file not shown.

src/v1/adapters/github/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const GITHUB_APP_WEBHOOKS = new Elysia({ prefix: "/webhooks" }).post(
6060
const payload = ctx.body as ProjectsV2ItemEvent;
6161

6262
if (
63-
payload.action === "edited" &&
63+
(payload.action === "edited" || payload.action === "created" || payload.action === "converted" || payload.action === "restored") &&
64+
"changes" in payload &&
65+
"field_value" in payload.changes &&
6466
payload.changes?.field_value?.field_type === "iteration" &&
6567
payload.changes.field_value.field_node_id &&
6668
payload.installation?.id

0 commit comments

Comments
 (0)