Skip to content

ref(pr-metrics): Remove PullRequestAttribution REFERENCED_ISSUE from pull_request path#117284

Merged
giovanni-guidini merged 1 commit into
masterfrom
gio/core-235-remove-referenced-issue-attribution
Jun 10, 2026
Merged

ref(pr-metrics): Remove PullRequestAttribution REFERENCED_ISSUE from pull_request path#117284
giovanni-guidini merged 1 commit into
masterfrom
gio/core-235-remove-referenced-issue-attribution

Conversation

@giovanni-guidini

@giovanni-guidini giovanni-guidini commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Drop the REFERENCED_ISSUE attribution branch from handle_attribution. The webhook handler no longer parses PR body/title to find referenced Sentry issues; that signal will be derived from GroupLink instead (per CORE-235).

Concretely:

  • Remove the _REFERENCED_ISSUE_ATTRIBUTION_ACTIONS constant and the block in handle_attribution that called _refresh_referenced_issue_attribution
  • Delete the now-dead helpers _refresh_referenced_issue_attribution and _description_changed
  • Remove unused imports (PullRequestAttribution, ReferencedIssueSignalDetails, find_referenced_groups) and the orphaned pr_metrics/types.py module
  • Remove all corresponding tests; update test_irrelevant_actions_skipped to include reopened and edited (now truly no-ops for attribution)

Refs CORE-235


Given we don't yet have the judge path wired in, and we already incldue the group_ids via GroupLinks in the emitted event we should be OK dropping this now.

…pull_request path

Drop the REFERENCED_ISSUE attribution branch from handle_attribution.
The webhook no longer parses PR body/title to find Sentry issues;
that signal will come from GroupLink instead.

Removes the _refresh_referenced_issue_attribution and
_description_changed helpers, the _REFERENCED_ISSUE_ATTRIBUTION_ACTIONS
constant, the now-unused PullRequestAttribution / ReferencedIssueSignalDetails
imports, and the orphaned pr_metrics/types.py module. Cleans up all
related tests.

Refs CORE-235
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 10, 2026

Copy link
Copy Markdown

CORE-235

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 10, 2026
@giovanni-guidini giovanni-guidini marked this pull request as ready for review June 10, 2026 10:01
@giovanni-guidini giovanni-guidini requested a review from vaind June 10, 2026 10:01
@giovanni-guidini giovanni-guidini merged commit 01b2387 into master Jun 10, 2026
66 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/core-235-remove-referenced-issue-attribution branch June 10, 2026 11:34
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.

2 participants