Skip to content

feat(scm): add check_suite and pull_request_review to event stream#116326

Open
joseph-sentry wants to merge 4 commits into
masterfrom
joey--new-scm-events
Open

feat(scm): add check_suite and pull_request_review to event stream#116326
joseph-sentry wants to merge 4 commits into
masterfrom
joey--new-scm-events

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

add serializers, deserializers and update functions to handle new event types

in a follow up change i will create the concrete listeners that will handle these
events but this just sets it up so in the next change i just have to implement the
listener

Fixes CW-1406
Fixes CW-1390

add serializers, deserializers and update functions to handle new event types

in a follow up change i will create the concrete listeners that will handle these
events but this just sets it up so in the next change i just have to implement the
listener

Fixes CW-1406
Fixes CW-1390
@joseph-sentry joseph-sentry requested review from a team as code owners May 27, 2026 18:12
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 27, 2026

CW-1406

CW-1390

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 27, 2026
Comment thread src/sentry/scm/private/ipc.py
PullRequestReviewEvent requires author and is_bot fields but the
parser, serializer, and deserializer were missing them, causing
TypeError at runtime for every pull_request_review listener task.
Comment thread tests/sentry/scm/unit/private/test_ipc.py Outdated
Comment thread src/sentry/scm/private/webhooks/github.py Outdated
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d190ef6. Configure here.

Comment thread src/sentry/scm/private/webhooks/github.py
Comment thread src/sentry/scm/private/webhooks/github.py Outdated
…uest_review

- Use pr.number instead of pr.id for pull_request_ids in check_suite and
  pull_request_id in pull_request_review to match PR event's str(e.number)
- Capture html_url instead of url from GitHub check_suite payload
- Add assert_never fallback to deserialize_github_event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant