Skip to content

Commit d7bf83a

Browse files
committed
strip color, add whitespace
1 parent 34248f9 commit d7bf83a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

command/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ func issueStatus(cmd *cobra.Command, args []string) error {
175175

176176
out := colorableOut(cmd)
177177

178-
fmt.Fprint(out, utils.Gray("Relevant issues in "))
179-
fmt.Fprint(out, utils.Cyan(ghrepo.FullName(baseRepo)))
178+
fmt.Fprintln(out, "")
179+
fmt.Fprintf(out, "Relevant issues in %s\n", ghrepo.FullName(baseRepo))
180180
fmt.Fprintln(out, "")
181181

182182
printHeader(out, "Issues assigned to you")

command/issue_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ func TestIssueStatus_blankSlate(t *testing.T) {
5858
t.Errorf("error running command `issue status`: %v", err)
5959
}
6060

61-
expectedOutput := `Relevant issues in OWNER/REPO
61+
expectedOutput := `
62+
Relevant issues in OWNER/REPO
63+
6264
Issues assigned to you
6365
There are no issues assigned to you
6466

command/pr.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ func prStatus(cmd *cobra.Command, args []string) error {
104104

105105
out := colorableOut(cmd)
106106

107-
fmt.Fprint(out, utils.Gray("Relevant pull requests in "))
108-
fmt.Fprint(out, utils.Cyan(ghrepo.FullName(baseRepo)))
107+
fmt.Fprintln(out, "")
108+
fmt.Fprintf(out, "Relevant pull requests in %s\n", ghrepo.FullName(baseRepo))
109109
fmt.Fprintln(out, "")
110110

111111
printHeader(out, "Current branch")

command/pr_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ func TestPRStatus_blankSlate(t *testing.T) {
136136
t.Errorf("error running command `pr status`: %v", err)
137137
}
138138

139-
expected := `Relevant pull requests in OWNER/REPO
139+
expected := `
140+
Relevant pull requests in OWNER/REPO
141+
140142
Current branch
141143
There is no pull request associated with [blueberries]
142144

0 commit comments

Comments
 (0)