X Tutup
Skip to content

fix: respect GH_FORCE_TTY when running gh pr view#5357

Merged
mislav merged 1 commit intocli:trunkfrom
callumacrae:force-tty-pr-view
Mar 29, 2022
Merged

fix: respect GH_FORCE_TTY when running gh pr view#5357
mislav merged 1 commit intocli:trunkfrom
callumacrae:force-tty-pr-view

Conversation

@callumacrae
Copy link
Copy Markdown
Contributor

GH_FORCE_TTY only affects stdout, not stderr, so this check was
failing and the flag was being ignored.

I also checked for similar problem in other files but everything else
seemed stderr or stdin related.

Let me know if this needs tests or anything :)

Fixes #5354

`GH_FORCE_TTY` only affects stdout, not stderr, so this check was
failing and the flag was being ignored.

I also checked for similar problem in other files but everything else
seemed stderr or stdin related.

closes cli#5354
@callumacrae callumacrae requested a review from a team as a code owner March 25, 2022 15:11
@callumacrae callumacrae requested review from vilmibm and removed request for a team March 25, 2022 15:11
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Mar 25, 2022
Copy link
Copy Markdown

@fizietechD fizietechD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Copy Markdown
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! No tests necessary for such a simple change.

@mislav mislav enabled auto-merge March 29, 2022 14:05
@mislav mislav merged commit 91c450e into cli:trunk Mar 29, 2022
@callumacrae callumacrae deleted the force-tty-pr-view branch March 29, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GH_FORCE_TTY not behaving as expected for gh pr view

5 participants

X Tutup