Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a95e344

Browse filesBrowse files
Richienbtargos
authored andcommitted
tty: support more CI services in getColorDepth
PR-URL: #40385 Refs: sindresorhus/yoctocolors#5 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 305c022 commit a95e344
Copy full SHA for a95e344

File tree

Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/tty.js‎

Copy file name to clipboardExpand all lines: lib/internal/tty.js
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,15 @@ function getColorDepth(env = process.env) {
159159
}
160160

161161
if (env.CI) {
162-
if ('TRAVIS' in env || 'CIRCLECI' in env || 'APPVEYOR' in env ||
163-
'GITLAB_CI' in env || env.CI_NAME === 'codeship') {
162+
if ([
163+
'APPVEYOR',
164+
'BUILDKITE',
165+
'CIRCLECI',
166+
'DRONE',
167+
'GITHUB_ACTIONS',
168+
'GITLAB_CI',
169+
'TRAVIS',
170+
].some((sign) => sign in env) || env.CI_NAME === 'codeship') {
164171
return COLORS_256;
165172
}
166173
return COLORS_2;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.