Skip to content

Commit

Permalink
gh: do not require auth if running for shell completion
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed May 29, 2023
1 parent 2ef9692 commit 0e348cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/github/gh.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func GitHubCLI() schema.Executable {
NeedsAuth: needsauth.IfAll(
needsauth.NotForHelpOrVersion(),
needsauth.NotWithoutArgs(),
needsauth.NotWhenContainsArgs("__complete"),
),
Uses: []schema.CredentialUsage{
{
Expand Down

0 comments on commit 0e348cb

Please sign in to comment.