{{ message }}
Repository navigation
Conversation
Replace the GitHub.com / GitHub Enterprise tabs in Publish Repository with a single account picker that groups signed-in accounts by host. An unassociated repository with several signed-in accounts now requires an explicit choice; the assigned account, or the only account, is still preselected. Changing the account clears the chosen organization and ignores organization responses for a previously selected account. Signing in from the dialog (or via "Sign in to another account…") selects the new account. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
7 tasks done
niik
added this pull request to stack #23045
October 19, 2026 10:02
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues were identified in the changed code or integration flows; automated tests were not executed.
No open issues 🎉
What changed in this PR
Unifies publishing across GitHub.com and GitHub Enterprise with one account picker, extending the multi-account workflow.
Changes:
- Groups accounts by host and requires a selection when ambiguous.
- Refreshes organizations when accounts change and selects newly signed-in accounts.
- Updates UI tests, styling, and OAuth documentation.
Review effort: Balanced
The account picker grouped by friendly hostname with its own ordering while Accounts preferences grouped by web host. Move the Preferences helper to app/src/lib/group-accounts-by-host.ts and build the picker's groups from it: GitHub.com first, then one group per enterprise host in the same order as Preferences. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Users can sign in to additional accounts from Settings. The no-accounts sign-in prompt in Publish is unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
getHTMLURL now keeps non-default ports, so a server on another port gets its own group. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…sh-account-picker Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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 → #23023 → this). Closes the remaining gaps in #379 "Publish with a selected account".
Description
groupAccountsByHosthelper (app/src/lib/group-accounts-by-host.ts), so both order hosts the same way.AccountPickernow accepts anullselection, which shows a placeholder, and an opt-ingroupByHost. Clone isn't changed here; it can opt in in the next layer._publishRepositorybehaviour). Theoauth.mddoc is updated to match.#379 scenario check
publish-repository-test(grouped headers, no.tab-bar)multi-account-pickers-test(assigned enterprise account preselected)publish-repository-testpublish-repository-test(placeholder, disabled, submit ignored until chosen)publish-repository-test(orgs refetched per account, stale org cleared)_publishRepositorystoresaccount.loginpublish-repository-testpublish-repository-test(callback selects new account)Screenshots
The screenshots with signed-in accounts were taken before the "Sign in to another account…" link under the picker was removed, so they still show it.
Multiple accounts, unassociated repository: an account choice is required

Accounts grouped by host

After choosing an enterprise account

Only one account signed in

No accounts signed in

Release notes
Notes: [Improved] Publish Repository lets you pick from all signed-in accounts on GitHub.com and GitHub Enterprise in a single list