-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
Enable terminal colors in CI #57998
Copy link
Copy link
Closed as not planned
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Description
Activity
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
Type
Projects
- StatusShow more project fieldsAwaiting Triage
What is the problem this feature will solve?
I noticed
util.styleText()supports colorizing text in GitLab CI and GitHub Actions in 22.14, but not in 22.15. And in 22.14, only when the color input is an array. The cause is #56722. That PR correctly solves the bug it references. But it does raise a question: Shouldutil.styleText()enable colors if it runs in a CI provider that supports it? I think it would be nice to have.What is the feature you are proposing to solve the problem?
Enable colorizing text if Node.js runs in a CI provider that is known to support colors.
What alternatives have you considered?
Keep the status quo. Don’t support colorizing text in CI by default.