Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(telemetry) improve github action and circle detection #28732

Merged
merged 3 commits into from
Dec 22, 2020
Merged

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_ANNOTATE`, name: `ZEIT Now` }),
getEnvDetect({ key: `NOW_REGION`, name: `ZEIT Now v1` }),
getEnvDetect({ key: `VERCEL_URL`, name: `Vercel Now` }),
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.

3 participants