Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(@clack/prompts): adapt spinner to CI environment #169

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Mist3rBru
Copy link
Contributor

This PR addresses a issue reported in GitHub Actions where spinner was excessively writing messages, leading to confusion and cluttered output. To enhance the CI workflow and provide a smoother experience, the following changes have been made only for CI environment:

  • Messages will now only be written when a spinner method is called and the message updated, preventing unnecessary message repetition.
  • There will be no loading dots animation, instead it will be always ...
  • Instead of erase the previous message, action that is blocked during CI, it will just write a new one.

Demo

2023-09-22_17-06-00.mov

Closes #168

@changeset-bot
Copy link

changeset-bot bot commented Sep 22, 2023

🦋 Changeset detected

Latest commit: 7e34e93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ulken
Copy link
Collaborator

ulken commented Sep 23, 2023

Suggestion: use something like https://www.npmjs.com/package/ci-info to cover more CI environments.

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.

[Request] Disable continuous terminal rewriting in CI
2 participants