diff --git a/command/issue.go b/command/issue.go index 711df46a6..516bd3faf 100644 --- a/command/issue.go +++ b/command/issue.go @@ -175,6 +175,10 @@ func issueStatus(cmd *cobra.Command, args []string) error { out := colorableOut(cmd) + fmt.Fprintln(out, "") + fmt.Fprintf(out, "Relevant issues in %s\n", ghrepo.FullName(baseRepo)) + fmt.Fprintln(out, "") + printHeader(out, "Issues assigned to you") if issuePayload.Assigned.TotalCount > 0 { printIssues(out, " ", issuePayload.Assigned.TotalCount, issuePayload.Assigned.Issues) diff --git a/command/issue_test.go b/command/issue_test.go index cc18dcdf2..98ba6119e 100644 --- a/command/issue_test.go +++ b/command/issue_test.go @@ -58,7 +58,10 @@ func TestIssueStatus_blankSlate(t *testing.T) { t.Errorf("error running command `issue status`: %v", err) } - expectedOutput := `Issues assigned to you + expectedOutput := ` +Relevant issues in OWNER/REPO + +Issues assigned to you There are no issues assigned to you Issues mentioning you diff --git a/command/pr.go b/command/pr.go index 1a227cc63..624debac0 100644 --- a/command/pr.go +++ b/command/pr.go @@ -104,6 +104,10 @@ func prStatus(cmd *cobra.Command, args []string) error { out := colorableOut(cmd) + fmt.Fprintln(out, "") + fmt.Fprintf(out, "Relevant pull requests in %s\n", ghrepo.FullName(baseRepo)) + fmt.Fprintln(out, "") + printHeader(out, "Current branch") if prPayload.CurrentPR != nil { printPrs(out, 0, *prPayload.CurrentPR) diff --git a/command/pr_test.go b/command/pr_test.go index d51e32325..3fbfb0b8e 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -136,7 +136,10 @@ func TestPRStatus_blankSlate(t *testing.T) { t.Errorf("error running command `pr status`: %v", err) } - expected := `Current branch + expected := ` +Relevant pull requests in OWNER/REPO + +Current branch There is no pull request associated with [blueberries] Created by you