Skip to content

Commit 42c9dd7

Browse files
committed
fix: use event_type as key for GH action
woops
1 parent 30879df commit 42c9dd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/webhooks-trigger.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ const WebhooksTrigger = ({tool}: WebhooksTriggerConfig): ReactElement => {
115115
},
116116
body: JSON.stringify({
117117
...(isGithubAction && {
118-
eventType: options.githubEventType,
118+
// eslint-disable-next-line camelcase
119+
event_type: options.githubEventType,
119120
}),
120121
}),
121122
})
@@ -144,7 +145,7 @@ const WebhooksTrigger = ({tool}: WebhooksTriggerConfig): ReactElement => {
144145
setTriggeringWebhook(null)
145146
}
146147
},
147-
[client, fetchWebhooks, encryptionSalt],
148+
[client, fetchWebhooks, encryptionSalt, options.githubEventType],
148149
)
149150

150151
/**

0 commit comments

Comments
 (0)