charmbracelet / charmbracelet/log

colors doesn't work on github actions out of the box

Open
#130 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.4k
Forks
103
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
we have a cli tool that uses charmbracelet/log for logging, locally it prints nice colors, but in github actions terminal it doesn't print colors.

**Describe the solution you'd like**
perhaps the issue is on github side but i would like to get a workaround for this or ideally make it works out of the box.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
local:
![image](https://github.com/charmbracelet/log/assets/17493790/adeacc08-8c8b-4e47-bc27-44b16cff13e1)

github actions:
![image](https://github.com/charmbracelet/log/assets/17493790/04628a0e-24ec-4bb3-894c-e0d09ad860d2)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the color behavior in a GitHub Actions terminal and inspect the library's terminal and color-detection entry points. Determine whether the behavior is caused by GitHub Actions or the library; done means colors work out of the box there or a documented workaround is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.