Skip to content

Use user mappings for deploy "my commits" notifications #119819

Description

@sentry-junior

Deploy notifications set to Releases with My Commits only match commit authors via verified Sentry emails, so GitHub noreply authors never get notified.

Current behavior

  • ReleaseActivityNotification collects commit author emails, then resolves users with user_service.get_many_by_email(..., is_verified=True) before applying the committed_only deploy setting: src/sentry/notifications/notifications/activity/release.py
  • Participant selection then only includes users already in that verified-email set: src/sentry/notifications/utils/participants.py
  • Secondary emails do not help for GitHub private commit addresses like 123456789+username@users.noreply.github.com, because those addresses cannot receive verification mail

Gap

Suspect-commit / author resolution already supports User Mappings for anonymous SCM emails:

Deploy "my commits" still ignores those mappings, so users who commit with GitHub noreply emails (a common private-email setup) remain invisible to committed_only deploy notifications even when a @githubusername -> Sentry user mapping exists.

Requested change

When determining who committed to a release for deploy notifications, resolve commit authors the same way as suspect-commit author resolution: prefer User Mappings / GitHub identity, then fall back to verified email.

Reported by Lorenzo Cian.

Requested by Lorenzo Cian via Junior.

--

View Junior Session in Sentry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions