Skip to content

Commit

Permalink
Merge pull request #271 from j178/gh-no-auth-when-complete
Browse files Browse the repository at this point in the history
gh: do not require auth if running for shell completion
  • Loading branch information
accraw committed May 29, 2023
2 parents 2ef9692 + 0e348cb commit 080c5cc
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 080c5cc

Please sign in to comment.