X Tutup
Skip to content

Commit 91c450e

Browse files
authored
Merge pull request cli#5357 from callumacrae/force-tty-pr-view
fix: respect `GH_FORCE_TTY` when running `gh pr view`
2 parents ee6fc0f + f7ef503 commit 91c450e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/pr/view/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func viewRun(opts *ViewOptions) error {
9898
return err
9999
}
100100

101-
connectedToTerminal := opts.IO.IsStdoutTTY() && opts.IO.IsStderrTTY()
101+
connectedToTerminal := opts.IO.IsStdoutTTY()
102102

103103
if opts.BrowserMode {
104104
openURL := pr.URL

0 commit comments

Comments
 (0)
X Tutup