Skip to content

feat(#50): prioritize CI environment in non-interactive message - #65

Merged
admarble merged 1 commit into
mainfrom
feature/50-show-ci-environment-name-in-non-interactive-messag
Jan 11, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/50-show-ci-environment-name-in-non-interactive-messag

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Reorder checks in getNonInteractiveReason() to check CI environment first
  • CI environments (GitHub Actions, GitLab CI, etc.) now show the CI name instead of "stdin is not a terminal"
  • Add 3 new tests verifying CI priority over TTY checks

Changes

File Changes
src/lib/tty.ts Reorder CI check to top of getNonInteractiveReason()
src/lib/tty.test.ts Add 3 new priority tests, clarify existing test names

Test plan

  • npm test passes (284 tests)
  • npm run build passes
  • Manual: Set GITHUB_ACTIONS=true and pipe input → should show "running in CI environment (github actions)"

Closes #50

🤖 Generated with Claude Code

When running in a CI environment (e.g., GitHub Actions), the
non-interactive message now shows the CI environment name instead of
the stdin/stdout TTY reason, which is more helpful for users.

Fixes the priority order in getNonInteractiveReason() to check CI first,
since CI environments typically have non-TTY stdin but users benefit
more from seeing which CI system they're running in.

Closes #50

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show CI environment name in non-interactive message when in CI

1 participant