diff --git a/pkg/cmd/pr/checkout/checkout.go b/pkg/cmd/pr/checkout/checkout.go index e78eb026b..b40aa9062 100644 --- a/pkg/cmd/pr/checkout/checkout.go +++ b/pkg/cmd/pr/checkout/checkout.go @@ -55,7 +55,7 @@ func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobr Use: "checkout [ | | ]", 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 } diff --git a/pkg/cmd/pr/checkout/checkout_test.go b/pkg/cmd/pr/checkout/checkout_test.go index 73055e1f8..cf1c504d1 100644 --- a/pkg/cmd/pr/checkout/checkout_test.go +++ b/pkg/cmd/pr/checkout/checkout_test.go @@ -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)")