Repository navigation
Add Account submenu and Repository Settings item to the repository context menu - #23023
Merged
niik merged 11 commits intoNov 3, 2026
Conversation
Lets users reassign a repository to another signed-in account on its host from the repository list and toolbar context menus. A signed-out current account is shown checked and disabled. The submenu is hidden when there's nothing to choose between. Co-authored-by: Copilot App <[email protected]>
This was referenced Oct 15, 2026
…y-host' into niik-repository-accounts-context-submenu
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Static review found no blocking issues in the focused menu changes and test coverage; tests were not executed.
No open issues 🎉
What changed in this PR
Adds an Account submenu to repository context menus, extending the multi-account workflow beyond Repository Settings.
Changes:
- Offers eligible accounts and marks retained signed-out assignments.
- Connects both context-menu entry points to the existing dispatcher, with error reporting.
- Adds tests for account selection, identity matching, and submenu visibility.
| File | Description |
|---|---|
| app/test/unit/ui/repository-list-item-context-menu-test.ts | Tests account choices, selection, and visibility rules. |
| app/src/ui/repositories-list/repository-list-item-context-menu.ts | Builds the Account submenu. |
| app/src/ui/repositories-list/repositories-list.tsx | Passes accounts and the selection callback to list menus. |
| app/src/ui/app.tsx | Wires both entry points to account updates and error reporting. |
Review effort: Balanced
Opens Repository Settings for the right-clicked repository without changing the selection. Unselected repositories are refreshed first so the dialog shows their remote. Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
niik
marked this pull request as ready for review
October 19, 2026 15:06
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
sergiou87
previously approved these changes
Oct 21, 2026
sergiou87
left a comment
Member
There was a problem hiding this comment.
Works as expected except for a bug reported in #23020 (comment) that is easier to repro here. I assume it will be dealt with either in #23030 or in a new PR, so I'm gonna approve this one.
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
…ory-accounts-context-submenu Co-authored-by: Copilot App <[email protected]>
sergiou87
approved these changes
Oct 22, 2026
sergiou87
left a comment
Member
There was a problem hiding this comment.
Bug already fixed in the first PR 🙌 Thank you!!
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.
Part of the multi-account stack (#23020 → #23021 → #23022 → this). Implements the context menu part of acceptance criteria #388 Change a repository's account, and adds a shortcut to Repository Settings.
Description
The repository context menu (repository list and the Current Repository toolbar button) gets two additions.
Account submenu
Reassigns a repository to another signed-in account on its host.
@login, with the current account checked. There is no "No account" option.@login (Signed out), checked and disabled. The signed-in accounts next to it stay selectable.dispatcher.updateRepositoryAccount, the same path Repository Settings uses, and errors are posted throughpostError. There's no confirmation, which matches Settings.The label is the singular "Account" because the submenu is a single choice. The acceptance criteria text says "Accounts".
The Repository Settings scenario was already in place before this PR and is covered by
repository-settings-account-test.tsx.Repository Settings… item
"Repository Settings…" (macOS) / "Repository settings…" (Windows) comes right after the Account submenu. It opens Repository Settings for the right-clicked repository, including repositories not on GitHub. It's hidden for cloning and missing repositories.
The selection doesn't change. The dialog reads the repository's remote only when it opens, and that state is only loaded once a repository has been refreshed. So a repository that isn't selected is refreshed first; otherwise its Remote tab would show "Publish" instead of its remote.
Screenshots
None: the native Electron context menu can't be captured by the UI test harness.
Release notes
Notes: no-notes