Skip to content

Conversation

@jamo
Copy link
Contributor

@jamo jamo commented Dec 22, 2020

Improves ENV based CI detection. This would be cool to backport

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 22, 2020
@pieh pieh added topic: telemetry* and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Dec 22, 2020
Comment on lines +11 to +12
getEnvDetect({ key: `CIRCLE_BRANCH`, name: `CircleCI` }),
getEnvDetect({ key: `CIRCLECI`, name: `CircleCI` }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for papertrail - CircleCi env vars are document in https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables (at least as of moment of writing this comment heh)

getEnvDetect({ key: `NOW_BUILDER`, name: `Vercel Now` }),
getEnvDetect({ key: `VERCEL_BUILDER`, name: `Vercel Now` }),
getEnvDetect({ key: `CODESANDBOX_SSE`, name: `CodeSandbox` }),
getEnvDetect({ key: `GITHUB_ACTIONS`, name: `GitHub Actions` }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pieh pieh merged commit 3af7182 into master Dec 22, 2020
@pieh pieh deleted the ci-detection branch December 22, 2020 21:43
vladar pushed a commit that referenced this pull request Dec 23, 2020
* chore(telemetry) improve github action and circle detection

* Change order

* Make sure tests work in circle

(cherry picked from commit 3af7182)
vladar pushed a commit that referenced this pull request Dec 23, 2020
…28747)

* chore(telemetry) improve github action and circle detection

* Change order

* Make sure tests work in circle

(cherry picked from commit 3af7182)

Co-authored-by: Jarmo Isotalo <jamo@isotalo.fi>
@vladar
Copy link
Contributor

vladar commented Dec 23, 2020

Published in gatsby-core-utils@1.7.1 and gatsby@2.29.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants