Skip to content

Commit 782bfd6

Browse files
Adam GoughAdam Gough
authored andcommitted
test
1 parent b3f19c6 commit 782bfd6

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

apps/sim/triggers/github/webhook.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const githubWebhookTrigger: TriggerConfig = {
3737
},
3838

3939
outputs: {
40-
// GitHub webhook payload structure - maps 1:1 to actual GitHub webhook body
40+
// GitHub webhook payload structure - expose fields at root so tags are <github1.repository>, not <github1.github.repository>
4141
ref: {
4242
type: 'string',
4343
description: 'Git reference (e.g., refs/heads/fix/telegram-wh)',
@@ -70,8 +70,7 @@ export const githubWebhookTrigger: TriggerConfig = {
7070
type: 'string',
7171
description: 'URL to compare the changes',
7272
},
73-
github: {
74-
repository: {
73+
repository: {
7574
id: {
7675
type: 'number',
7776
description: 'Repository ID',
@@ -267,7 +266,7 @@ export const githubWebhookTrigger: TriggerConfig = {
267266
},
268267
},
269268
},
270-
pusher: {
269+
pusher: {
271270
type: 'object',
272271
description: 'Information about who pushed the changes',
273272
name: {
@@ -279,7 +278,7 @@ export const githubWebhookTrigger: TriggerConfig = {
279278
description: 'Pusher email',
280279
},
281280
},
282-
sender: {
281+
sender: {
283282
login: {
284283
type: 'string',
285284
description: 'Sender username',
@@ -317,7 +316,7 @@ export const githubWebhookTrigger: TriggerConfig = {
317316
description: 'Whether the sender is a site admin',
318317
},
319318
},
320-
commits: {
319+
commits: {
321320
type: 'array',
322321
description: 'Array of commit objects',
323322
id: {
@@ -381,7 +380,7 @@ export const githubWebhookTrigger: TriggerConfig = {
381380
description: 'Array of modified files',
382381
},
383382
},
384-
head_commit: {
383+
head_commit: {
385384
type: 'object',
386385
description: 'Head commit object',
387386
id: {
@@ -446,20 +445,20 @@ export const githubWebhookTrigger: TriggerConfig = {
446445
},
447446
},
448447

449-
// Convenient flat fields for easy access
450-
event_type: {
448+
// Convenient flat fields for easy access
449+
event_type: {
451450
type: 'string',
452451
description: 'Type of GitHub event (e.g., push, pull_request, issues)',
453452
},
454-
action: {
453+
action: {
455454
type: 'string',
456455
description: 'The action that was performed (e.g., opened, closed, synchronize)',
457456
},
458-
branch: {
457+
branch: {
459458
type: 'string',
460459
description: 'Branch name extracted from ref',
461460
},
462-
},
461+
463462
},
464463

465464
instructions: [

0 commit comments

Comments
 (0)