Skip to content

Commit 9527563

Browse files
AbhiPrasadconor-ob
andauthored
feat(node): Detect Railway release name [v8] (#14714)
Co-authored-by: Conor O'Brien <[email protected]>
1 parent 6e682c4 commit 9527563

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13+
Work in this release was contributed by @conor-ob. Thank you for your contribution!
14+
1315
## 8.45.1
1416

1517
- fix(feedback): Return when the `sendFeedback` promise resolves ([#14683](https://github.com/getsentry/sentry-javascript/pull/14683))

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)