Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / inquirer / node_modules / supports-color / index.js
index dcaa45412304d464fe37e9ceab64ba68ac1a092a..6fada390fb88d8e1dae3454216aa3995141a1785 100644 (file)
@@ -81,7 +81,7 @@ function supportsColor(haveStream, streamIsTTY) {
        }
 
        if ('CI' in env) {
-               if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
+               if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
                        return 1;
                }
 
@@ -92,10 +92,6 @@ function supportsColor(haveStream, streamIsTTY) {
                return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
        }
 
-       if ('GITHUB_ACTIONS' in env) {
-               return 1;
-       }
-
        if (env.COLORTERM === 'truecolor') {
                return 3;
        }