Skip to content

Log webhook error messages - #12

Merged
timkpaine merged 1 commit into
mainfrom
agent/log-webhook-error-messages
Aug 11, 2026
Merged

timkpaine merged 1 commit into
mainfrom
agent/log-webhook-error-messages

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Cloudflare serializes custom Error objects from asynchronous webhook processing as stack-only events, hiding the GitHub API status and response message needed to diagnose failed merges.

Log Error.message as plain text at both webhook error boundaries while preserving existing responses and handling for non-Error values.

Adds regression coverage for asynchronous webhook failures. Validated with npm test, npm run check, npm run format:check, and npm run build.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@timkpaine
timkpaine marked this pull request as ready for review August 11, 2026 22:20
@timkpaine
timkpaine merged commit 6a5e2c2 into main Aug 11, 2026
1 check passed
@timkpaine
timkpaine deleted the agent/log-webhook-error-messages branch August 11, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant