Skip to content

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

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

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.

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>
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label Jun 15, 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.

1 participant