fix: update the copy
This commit is contained in:
parent
d92e529629
commit
985118e36a
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobr
|
|||
Use: "checkout [<number> | <url> | <branch>]",
|
||||
Short: "Check out a pull request in git",
|
||||
Example: heredoc.Doc(`
|
||||
# Interactively select a PR to checkout from the 10 most recent
|
||||
# Interactively select a PR from the 10 most recent to check out
|
||||
$ gh pr checkout
|
||||
|
||||
# Checkout a specific PR
|
||||
|
|
@ -346,7 +346,7 @@ func promptForPR(prompter shared.Prompter, cs *iostreams.ColorScheme, jobs api.P
|
|||
)))
|
||||
}
|
||||
|
||||
selected, err := prompter.Select("Check out a specific PR?", "", candidates)
|
||||
selected, err := prompter.Select("Select a pull request", "", candidates)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ func Test_checkoutRun(t *testing.T) {
|
|||
reg.Register(httpmock.GraphQL(`query PullRequestList\b`), httpmock.FileResponse("./fixtures/prList.json"))
|
||||
},
|
||||
promptStubs: func(pm *prompter.MockPrompter) {
|
||||
pm.RegisterSelect("Check out a specific PR?",
|
||||
pm.RegisterSelect("Select a pull request",
|
||||
[]string{"#32 New feature (feature)", "#29 Fixed bad bug (bug-fix)", "#28 Improve documentation (docs)"},
|
||||
func(_, _ string, opts []string) (int, error) {
|
||||
return prompter.IndexFor(opts, "#32 New feature (feature)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue