Skip to content

Commit ca648db

Browse files
committed
get-webhook-event-payload: show the entire event
Previously, I only showed the request. But that's not all of the good information that we can have: Most notably, we can also show the response, which is particularly interesting in case things go wrong. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent cf0591c commit ca648db

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)