Label as pull request
This commit is contained in:
parent
573dda22a1
commit
2218e60264
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue