Merge pull request #11804 from cli/babakks/add-co-alias-to-pr-checkout
Add alias `co` for `pr checkout`
This commit is contained in:
commit
07ccec116d
1 changed files with 2 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue