如何获得对github-cli的更多身份验证?

问题描述

我已通过令牌认证到github cli

gh auth status -h lalala.com
#=>
lalala.com
  ✓ Logged in to lalala.com as lolofon (~/.config/gh/hosts.yml)
  ✓ Git operations for lalala.com configured to use https protocol.

但是,此后立即执行:

gh pr list --repo lala/portal
#=>
HTTP 401: This endpoint requires you to be authenticated. (https://api.github.com/graphql)

我做错了什么?谢谢!

解决方法

显然是个错误:-(
您可以通过如下设置环境变量来轻松解决此问题:

set GH_HOST=lalala.com

有关详情,请参见此GitHub issue