Repository navigation
Group repositories by assigned account - #23186
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the account-aware repository grouping change.
No open issues 🎉
What changed in this PR
Makes assigned accounts visible in the repository switcher without changing account selection for Git operations.
Changes:
- Splits owner and enterprise-host groups by account when multiple identities are retained, including signed-out assignments.
- Adds account-qualified local groups and Unassociated subgroups while preserving single-account headings, ordering, and Recent.
- Refreshes grouping when accounts change and adds regression tests and documentation.
| File | Description |
|---|---|
docs/technical/oauth.md |
Documents account-aware repository grouping. |
app/test/unit/ui/repositories-list-test.tsx |
Tests rendered headings and updates after account changes and reassignment. |
app/test/unit/repositories-list-grouping-test.ts |
Tests retained identities, local groups, ordering, and Recent preservation. |
app/src/ui/repositories-list/repositories-list.tsx |
Renders account qualifiers and refreshes groups when accounts change. |
app/src/ui/repositories-list/group-repositories.ts |
Implements account-aware group identities and ordering. |
Review effort: Balanced
tidy-dev
approved these changes
Nov 16, 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.
Description
Make repository account assignments visible in the repository switcher without changing how accounts are selected for Git operations.
Unassociatedsubgroup on multi-account endpoints. Keep existing headings for single-account endpoints, and group local-only repositories with stored assignments underOther — @login.Local-only repositories retain a login but not an endpoint, so their account groups use the stored login rather than attempting to distinguish hosts.
Screenshots
Actual macOS Electron captures with fictional repositories and fixture accounts
@monaand@octocat, not real account/repository data. Screenshots are cropped to the repository switcher. Temporary capture fixtures were injected at the list input and removed before committing; the grouping and rendering logic is the implementation in this PR.In the enterprise fixture, only
@monais signed in;@octocatremains represented by persisted repository assignments.Validation
Validated implementation commit:
4fee8491d3a19f5c851a99c6609fbbc709f27284.GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.bareRepository GIT_CONFIG_VALUE_0=all npm test— passed: 3,489 tests passed, 2 skipped, 0 failed.node_modules/.bin/tsc --noEmit --skipLibCheck— passed.npm run lint:fix— passed;npm run lint— passed.git diff --check— passed.The test invocation uses process-local Git configuration because this machine's global
safe.bareRepository=explicitrejects the suite's bare-repository fixtures. No global Git settings were changed.Team-authored review
Evidence: Screenshots and validation.
Review path: Lightweight review. This changes presentation and invalidation only, not authentication, credential selection, repository assignments, or Git operations.
Release notes
Notes: [Improved] Repositories are grouped by their assigned account when multiple GitHub accounts are used on the same host.