Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cli/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: trunk
Choose a base ref
...
head repository: galamdring/github-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on May 25, 2026

  1. auth: add per-owner account mapping to fix multi-account token selection

    When multiple GitHub accounts are configured for the same host, gh always
    uses the globally active account's token regardless of which org or user
    owns the current repo. This causes commands to silently authenticate as
    the wrong user.
    
    This change adds an owner-to-user mapping stored in hosts.yml, and
    automatically selects the correct token based on the repo owner resolved
    from git remotes at HTTP client construction time. A new command
    'gh auth set-user --owner <owner> <username>' manages the mappings.
    
    Fixes #12885
    galamdring authored and github-actions[bot] committed May 25, 2026
    Configuration menu
    Copy the full SHA
    bf26e33 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b14fa53 View commit details
    Browse the repository at this point in the history
Loading