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
{{ message }}
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
gh reports my current user incorrectly when called from a folder that is a git repo (I think that's what is triggering it?).
$ gh user --whoami
First we need authorization to use GitHub's API. Login with your GitHub account.? Enter your GitHub user bpatram? Enter your GitHub password [hidden]? Enter your two-factor code 851335Writing GH config data: /Users/brandonpatram/.gh.jsonAuthentication succeed.ebth# Calling this from a repo$ gh user --whoamiebth# Moving to a directory that is not a git repo$ cd ~$ gh user --whoamibpatram
In my case, it seems to return the organization the repo is owned by (ebth). Interestingly enough my .gh.json does list the correct user.
"github_user": "bpatram",
Deleting the .gh.json file and relogging has no effect.