Skip to content

Commit 11fec21

Browse files
conor-obAbhiPrasad
authored andcommitted
feat(node): Detect Railway release name (#14691)
This change adds release name detection for Railway Based on #12529 Related: getsentry/sentry-javascript-bundler-plugins#639
1 parent 85952db commit 11fec21

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/node/src/sdk/api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
6868
process.env['HEROKU_TEST_RUN_COMMIT_VERSION'] ||
6969
// Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases
7070
process.env['HEROKU_SLUG_COMMIT'] ||
71+
// Railway - https://docs.railway.app/reference/variables#git-variables
72+
process.env['RAILWAY_GIT_COMMIT_SHA'] ||
7173
// Render - https://render.com/docs/environment-variables
7274
process.env['RENDER_GIT_COMMIT'] ||
7375
// Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables

packages/vercel-edge/src/sdk.ts

+2
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
268268
process.env['HEROKU_TEST_RUN_COMMIT_VERSION'] ||
269269
// Heroku #2 https://docs.sentry.io/product/integrations/deployment/heroku/#configure-releases
270270
process.env['HEROKU_SLUG_COMMIT'] ||
271+
// Railway - https://docs.railway.app/reference/variables#git-variables
272+
process.env['RAILWAY_GIT_COMMIT_SHA'] ||
271273
// Render - https://render.com/docs/environment-variables
272274
process.env['RENDER_GIT_COMMIT'] ||
273275
// Semaphore CI - https://docs.semaphoreci.com/ci-cd-environment/environment-variables

0 commit comments

Comments
 (0)