Skip to content

Commit

Permalink
Merge pull request #379 from xoxys/main
Browse files Browse the repository at this point in the history
Add Woodpecker CI to no-color default autodetection
  • Loading branch information
dnephin committed Oct 29, 2023
2 parents e5e4f7e + 03054e1 commit b8d5d8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func defaultNoColor() bool {
// true for many CI environments which support color output. So instead, we
// try to detect these CI environments via their environment variables.
// This code is based on https://github.com/jwalton/go-supportscolor
if _, exists := os.LookupEnv("CI"); exists {
if value, exists := os.LookupEnv("CI"); exists {
var ciEnvNames = []string{
"APPVEYOR",
"BUILDKITE",
Expand All @@ -239,6 +239,9 @@ func defaultNoColor() bool {
if os.Getenv("CI_NAME") == "codeship" {
return false
}
if value == "woodpecker" {
return false
}
}
if _, exists := os.LookupEnv("TEAMCITY_VERSION"); exists {
return false
Expand Down

0 comments on commit b8d5d8f

Please sign in to comment.