feat(seer): Assign Seer-created PRs to invoking user on GitHub#112619
Closed
feat(seer): Assign Seer-created PRs to invoking user on GitHub#112619
Conversation
Add support for assigning PRs created by Seer's coding agent to the user who triggered the run. This makes PRs discoverable in GitHub's "assigned to you" filter instead of being lost as bot-authored PRs. - Register `organizations:seer-assign-prs-to-user` feature flag - Move `get_github_username_for_user` to shared `seer/utils.py` - Pass `assign_pr_to_user` flag and `github_username` to Seer in both autofix options and explorer user context - Existing review-request behavior is not gated by the flag Requires corresponding Seer changes to call `pr.add_to_assignees()`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/8COVqBts5ukuOuYkdOaogRqr1wgoYPcitMSL_fl3Gps
Member
Author
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 flag to gate rolloutget_github_username_for_userto sharedsentry/seer/utils.pyso both autofix and explorer flows can use itassign_pr_to_userboolean andgithub_usernameto Seer in both autofix request options and explorer user contextContext
PRs created by Seer's coding agent are authored by the GitHub App bot, making them hard for users to find. This change enables assigning PRs to the invoking user so they appear in GitHub's "assigned to you" filter.
Companion Seer PR: https://github.com/getsentry/seer/pull/5704
Test plan
TestGetGithubUsernameForUsertests pass (13/13)TestCallAutofixtests passCollectUserOrgContextTesttests pass (18/18)