Revert close and reopen changes

This commit is contained in:
Sam Coe 2021-02-23 13:24:48 -08:00
parent 9d062ed8fc
commit 34da59777b
No known key found for this signature in database
GPG key ID: 8E322C20F811D086
2 changed files with 4 additions and 4 deletions

View file

@ -35,9 +35,9 @@ func NewCmdClose(f *cmdutil.Factory, runF func(*CloseOptions) error) *cobra.Comm
}
cmd := &cobra.Command{
Use: "close [<number> | <url> | <branch>]",
Use: "close {<number> | <url> | <branch>}",
Short: "Close a pull request",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
// support `-R, --repo` override
opts.BaseRepo = f.BaseRepo

View file

@ -30,9 +30,9 @@ func NewCmdReopen(f *cmdutil.Factory, runF func(*ReopenOptions) error) *cobra.Co
}
cmd := &cobra.Command{
Use: "reopen [<number> | <url> | <branch>]",
Use: "reopen {<number> | <url> | <branch>}",
Short: "Reopen a pull request",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
// support `-R, --repo` override
opts.BaseRepo = f.BaseRepo