From 806574f9c168eed769c4e21710449738a32dd816 Mon Sep 17 00:00:00 2001 From: Tiernan L Date: Mon, 6 Apr 2020 09:56:45 -1000 Subject: [PATCH 1/2] spell out PR changes "PR" ---> "pull request" for consistency and clarity --- command/pr_checkout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/pr_checkout.go b/command/pr_checkout.go index 5db8fbd07..d237aefbb 100644 --- a/command/pr_checkout.go +++ b/command/pr_checkout.go @@ -123,7 +123,7 @@ var prCheckoutCmd = &cobra.Command{ Short: "Check out a pull request in Git", Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { - return errors.New("requires a PR number as an argument") + return errors.New("requires a pull request number as an argument") } return nil }, From 1aba83758948acdf3019caef9ff5599f4901105f Mon Sep 17 00:00:00 2001 From: Tiernan L Date: Mon, 6 Apr 2020 11:27:17 -1000 Subject: [PATCH 2/2] update text to long-form Change from "repo" to "repository". Run "gh repo clone -h` to see the usage text I am referring to. We use the word "repository" here: Usage: gh repo fork [] [flags] Usage: gh repo view [] [flags] --- command/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/repo.go b/command/repo.go index 4f8c51e0b..8efda0595 100644 --- a/command/repo.go +++ b/command/repo.go @@ -51,7 +51,7 @@ A repository can be supplied as an argument in any of the following formats: } var repoCloneCmd = &cobra.Command{ - Use: "clone []", + Use: "clone []", Args: cobra.MinimumNArgs(1), Short: "Clone a repository locally", Long: `Clone a GitHub repository locally.