Label as pull request

This commit is contained in:
Corey Johnson 2019-12-11 10:24:58 -08:00
parent 573dda22a1
commit 2218e60264
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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)
}