You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Multiple GitHub accounts: prs now picks which logged-in gh account to
use per repo instead of always using gh's active account. Without config it
uses an account that can read the repo, preferring the one whose login is the
repo owner, then the one remembered from last time, then (when several can
read it) one with commits in the repo, then gh's active account. Pin an account per
owner or repo with the new accounts config section, or per run with --account <login>. The token is passed to gh per command, so gh's global
active account is never changed. --as_user now defaults to the account in
use.
Changed
The repo is now detected from the git remotes (respecting gh repo set-default) rather than gh repo view, so detection no longer
fails when the active gh account can't see the repo.