Skip to content

Enable terminal colors in CI #57998

Open
Open
@remcohaszing

Description

@remcohaszing

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: Should util.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions