Skip to content

Commit 8ff4cc4

Browse files
committed
view: Add missing newline
Add a newline at the end of the 'View this {issue, pull request} on GitHub' message. `gh repo view` already had a newline at the end, so this only changes `issue view` and `pr view`.
1 parent 230441e commit 8ff4cc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/issue/view/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func printHumanIssuePreview(io *iostreams.IOStreams, issue *api.Issue) error {
204204
}
205205

206206
// Footer
207-
fmt.Fprintf(out, cs.Gray("View this issue on GitHub: %s"), issue.URL)
207+
fmt.Fprintf(out, cs.Gray("View this issue on GitHub: %s\n"), issue.URL)
208208

209209
return nil
210210
}

pkg/cmd/pr/view/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func printHumanPrPreview(io *iostreams.IOStreams, pr *api.PullRequest) error {
223223
}
224224

225225
// Footer
226-
fmt.Fprintf(out, cs.Gray("View this pull request on GitHub: %s"), pr.URL)
226+
fmt.Fprintf(out, cs.Gray("View this pull request on GitHub: %s\n"), pr.URL)
227227

228228
return nil
229229
}

0 commit comments

Comments
 (0)