Skip to content

fix: normalize queued GitHub webhook events - #198

Merged
devarshishimpi merged 14 commits into
devarshishimpi:mainfrom
ADAMDEV01:fix/169-normalize-queued-webhook-events
Nov 26, 2026
Merged

devarshishimpi merged 14 commits into
devarshishimpi:mainfrom
ADAMDEV01:fix/169-normalize-queued-webhook-events

Conversation

@ADAMDEV01

Copy link
Copy Markdown
Contributor

Summary

Fixes #169.

Queued webhook deliveries currently retain GitHub's raw event names (such as issue_comment and pull_request), while resolveQueuedJob expects the provider-normalized names (comment and change_request). This caused mention-triggered reviews and pull-request-close label cleanup to be silently skipped.

  • Expose webhook normalization as part of the core runtime port, separately from delivery storage.
  • Normalize persisted delivery payloads in resolveQueuedJob using the GitHub provider's existing normalizer.
  • Wire the normalizer into both Cloudflare Worker and Node runtimes.
  • Add core regression coverage for mention-triggered reviews, closed-PR label cleanup, and existing automatic reviews.
  • Add provider tests for raw-to-normalized event mappings and unsupported events.

Validation

GitHub Actions Code Quality passed on the head branch, including:

  • Package builds and package export checks
  • TypeScript typecheck
  • ESLint
  • Automated tests and package tests
  • Dashboard build
  • Cloudflare Worker dry-run build

@codra-app-personal codra-app-personal Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codra Review

✅ Nothing to flag. Reviewed 9 files (425 changed lines) and found no issues worth raising.

Reviewed commit: 676938dbcd

ℹ️ About Codra in GitHub

Your team has set up Codra to review pull requests in this repo. Reviews are triggered when you:

  • Open a pull request for review
  • Mark a draft as ready

Every review posts a summary here. A clean pass also gets a 👍 on the pull request itself.

@devarshishimpi
devarshishimpi merged commit 3a73803 into devarshishimpi:main Nov 26, 2026
6 checks passed
@devarshishimpi

Copy link
Copy Markdown
Owner

LGTM! Thanks for contributing..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Bot Mention Trigger Silently Discarded by Queue Worker Due to Raw Event Name Mismatch

2 participants