Skip to content

Commit

Permalink
feat(node): Detect Railway release name (#14691)
Browse files Browse the repository at this point in the history
This change adds release name detection for Railway

Based on #12529

Related:
getsentry/sentry-javascript-bundler-plugins#639
  • Loading branch information
conor-ob authored and AbhiPrasad committed Dec 16, 2024
1 parent 85952db commit 11fec21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/src/sdk/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
process.env['HEROKU_TEST_RUN_COMMIT_VERSION'] ||
// Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases
process.env['HEROKU_SLUG_COMMIT'] ||
// Railway - https://docs.railway.app/reference/variables#git-variables
process.env['RAILWAY_GIT_COMMIT_SHA'] ||
// Render - https://render.com/docs/environment-variables
process.env['RENDER_GIT_COMMIT'] ||
// Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables
Expand Down
2 changes: 2 additions & 0 deletions packages/vercel-edge/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
process.env['HEROKU_TEST_RUN_COMMIT_VERSION'] ||
// Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases
process.env['HEROKU_SLUG_COMMIT'] ||
// Railway - https://docs.railway.app/reference/variables#git-variables
process.env['RAILWAY_GIT_COMMIT_SHA'] ||
// Render - https://render.com/docs/environment-variables
process.env['RENDER_GIT_COMMIT'] ||
// Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables
Expand Down

0 comments on commit 11fec21

Please sign in to comment.