Skip to content

Commit

Permalink
Merge pull request #55 from dscho/get-more-complete-webhook-event-pay…
Browse files Browse the repository at this point in the history
…load

get-webhook-event-payload: show the entire event
  • Loading branch information
dscho authored Dec 23, 2023
2 parents cf0591c + ca648db commit 4a30c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-webhook-event-payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@
const events = await getMatchingEvents()
for (const e of events) {
const fullEvent = await gitHubRequestAsApp(console, 'GET', `/app/hook/deliveries/${e.id}`)
console.log(`id: ${e.id}\naction: ${e.action}\nrequest: ${JSON.stringify(fullEvent.request, null, 2)}`)
console.log(`id: ${e.id}\naction: ${e.action}\nevent: ${JSON.stringify(fullEvent, null, 2)}`)
}
})().catch(console.log)

0 comments on commit 4a30c1f

Please sign in to comment.