Skip to content

fix(webhook): skip review webhooks without reviewer id or timestamp#181

Closed
jaso0n0818 wants to merge 1 commit into
entrius:testfrom
jaso0n0818:fix/review-handler-missing-reviewer-guard
Closed

fix(webhook): skip review webhooks without reviewer id or timestamp#181
jaso0n0818 wants to merge 1 commit into
entrius:testfrom
jaso0n0818:fix/review-handler-missing-reviewer-guard

Conversation

@jaso0n0818

Copy link
Copy Markdown
Contributor

Summary

Guard pull_request_review webhook handling when review.user.id or review.submitted_at is missing.

Related Issues

Parity with backfill review ingestion in github-fetcher.service.ts.

Type of Change

  • Bug fix

Testing

  • npm run lint
  • npm run build

Duplicate check

Why

String(review.user.id) throws on ghost/deleted reviewers and causes webhook delivery failures; submitted_at is NOT NULL in the reviews schema.

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jun 15, 2026
Guard pull_request_review submissions that lack review.user.id or
review.submitted_at, matching the backfill path in github-fetcher.service.ts.
Prevents webhook 500s and NOT NULL upsert failures on ghost reviewers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jaso0n0818 jaso0n0818 force-pushed the fix/review-handler-missing-reviewer-guard branch from 7c1ac9c to b6406a2 Compare June 17, 2026 17:08
@anderdc anderdc closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants