feat(seer): Pass PR assignment flag and GitHub username to Seer#112670
Draft
feat(seer): Pass PR assignment flag and GitHub username to Seer#112670
Conversation
7 tasks
8a6d955 to
950be54
Compare
0461e97 to
e88ce89
Compare
950be54 to
5a0d4bc
Compare
e88ce89 to
51afcc4
Compare
Extract the GitHub username resolution function from autofix.py to seer/utils.py so it can be reused by the explorer flow. The old name is re-exported from autofix.py for backwards compatibility. No behavior change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/8BmYM4cKcaUl38fiIA-xxoHkUFgXmsXGQ2qrpAgJuKs
Extract the GitHub username resolution function from autofix.py to seer/utils.py so it can be reused by the explorer flow. The old name is re-exported from autofix.py for backwards compatibility. No behavior change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/8BmYM4cKcaUl38fiIA-xxoHkUFgXmsXGQ2qrpAgJuKs
Add feature flag `organizations:seer-assign-prs-to-user` and wire it through both autofix and explorer flows so Seer can assign PRs to the invoking user on GitHub. - Register feature flag in temporary.py - Pass `assign_pr_to_user` in autofix request options - Pass `github_username` and `assign_pr_to_user` in explorer user context Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/O_Pqf33_KzAdKIC0uHWtBHi4N9k2TWTCmGLf0e0rTrU
5a0d4bc to
b1c6394
Compare
51afcc4 to
1d9240e
Compare
Base automatically changed from
joshferge/ref/shared-github-username-util
to
master
April 10, 2026 15:07
trevor-e
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
organizations:seer-assign-prs-to-userfeature flagassign_pr_to_userboolean in autofix request optionsgithub_usernameandassign_pr_to_userin explorer user contextStack
Context
Legacy autofix already had reviewer assignment functionality, but the newer explorer autofix flow was missing it. This PR passes the necessary context (feature flag + GitHub username) so Seer can assign PRs to the invoking user in both flows.
Merge order
Merge this (Sentry) first, then the Seer PR. Seer's new fields default to
False/Noneso either order is safe during rolling deploy, but the feature only activates once Sentry is deployed and sending the flag.Companion Seer PR: https://github.com/getsentry/seer/pull/5704
Test plan
CollectUserOrgContextTestpasses (18/18)TestCallAutofixpassesassign_pr_to_user=Trueandgithub_usernameAgent transcript: https://claudescope.sentry.dev/share/ujgSwmf913H1ZXhobbmzBKpdRANFfyPG4duNrbz37Ho