Merge pull request #11804 from cli/babakks/add-co-alias-to-pr-checkout

Add alias `co` for `pr checkout`
This commit is contained in:
Melissa Xie 2025-09-24 11:08:42 -04:00 committed by GitHub
commit 07ccec116d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,8 @@ func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobr
$ gh pr checkout https://github.com/OWNER/REPO/pull/32
$ gh pr checkout feature
`),
Args: cobra.MaximumNArgs(1),
Args: cobra.MaximumNArgs(1),
Aliases: []string{"co"},
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) > 0 {
opts.PRResolver = &specificPRResolver{