Skip to content

Commit 4a30c1f

Browse files
authored
Merge pull request #55 from dscho/get-more-complete-webhook-event-payload
get-webhook-event-payload: show the entire event
2 parents cf0591c + ca648db commit 4a30c1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

get-webhook-event-payload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@
107107
const events = await getMatchingEvents()
108108
for (const e of events) {
109109
const fullEvent = await gitHubRequestAsApp(console, 'GET', `/app/hook/deliveries/${e.id}`)
110-
console.log(`id: ${e.id}\naction: ${e.action}\nrequest: ${JSON.stringify(fullEvent.request, null, 2)}`)
110+
console.log(`id: ${e.id}\naction: ${e.action}\nevent: ${JSON.stringify(fullEvent, null, 2)}`)
111111
}
112112
})().catch(console.log)

0 commit comments

Comments
 (0)