mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
feat: support check_suite webhook events
This commit is contained in:
6 files changed
+115
-2
No files matched your search
@@ -44,6 +44,10 @@ function extractBranch(event: WebhookEvent): string | undefined {
|
||||
const wf = event.payload.workflow_run as { head_branch?: string } | undefined;
|
||||
return wf?.head_branch;
|
||||
}
|
||||
if (event.event === "check_suite") {
|
||||
const suite = event.payload.check_suite as { head_branch?: string } | undefined;
|
||||
return suite?.head_branch;
|
||||
}
|
||||
if (event.event === "commit_comment") {
|
||||
const comment = event.payload.comment as { position?: number | null } | undefined;
|
||||
if (comment?.position != null) {
|
||||
|
||||
Reference in new issue
Block a user