From 0e348cba3f963c8af4f2c7e61c812746b9e77a21 Mon Sep 17 00:00:00 2001 From: j178 <10510431+j178@users.noreply.github.com> Date: Mon, 29 May 2023 17:35:22 +0800 Subject: [PATCH] gh: do not require auth if running for shell completion --- plugins/github/gh.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/github/gh.go b/plugins/github/gh.go index e89c0cc9c..09a277332 100644 --- a/plugins/github/gh.go +++ b/plugins/github/gh.go @@ -15,6 +15,7 @@ func GitHubCLI() schema.Executable { NeedsAuth: needsauth.IfAll( needsauth.NotForHelpOrVersion(), needsauth.NotWithoutArgs(), + needsauth.NotWhenContainsArgs("__complete"), ), Uses: []schema.CredentialUsage{ {