From 2218e60264b4d83261a556018aa797fa3455218f Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 11 Dec 2019 10:24:58 -0800 Subject: [PATCH] Label as pull request --- command/pr.go | 2 +- command/pr_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command/pr.go b/command/pr.go index 062664c72..a5c761eeb 100644 --- a/command/pr.go +++ b/command/pr.go @@ -277,7 +277,7 @@ func prView(cmd *cobra.Command, args []string) error { if err != nil { return err } - return fmt.Errorf("no open pull requests found for branch %q. To open a specific PR use a PR number as an argument", branch) + return fmt.Errorf("no open pull requests found for branch %q. To open a specific pull request use the pull request's number as an argument", branch) } openURL = pr.URL } diff --git a/command/pr_test.go b/command/pr_test.go index eb97d2bd5..dadeeada0 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -217,7 +217,7 @@ func TestPRView_noResultsForBranch(t *testing.T) { defer restoreCmd() _, err := RunCommand(prViewCmd, "pr view") - if err == nil || err.Error() != `no open pull requests found for branch "blueberries". To open a specific PR use a PR number as an argument` { + if err == nil || err.Error() != `no open pull requests found for branch "blueberries". To open a specific pull request use the pull request's number as an argument` { t.Errorf("error running command `pr view`: %v", err) }