Merge pull request #5357 from callumacrae/force-tty-pr-view

fix: respect `GH_FORCE_TTY` when running `gh pr view`
This commit is contained in:
Mislav Marohnić 2022-03-29 16:12:45 +02:00 committed by GitHub
commit 91c450ec60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ func viewRun(opts *ViewOptions) error {
return err
}
connectedToTerminal := opts.IO.IsStdoutTTY() && opts.IO.IsStderrTTY()
connectedToTerminal := opts.IO.IsStdoutTTY()
if opts.BrowserMode {
openURL := pr.URL