From e1c3fbedbe86eff434a74bc37dcfd81849693dd9 Mon Sep 17 00:00:00 2001 From: Natik Gadzhi Date: Wed, 22 Nov 2023 14:42:12 -0800 Subject: [PATCH] bugfix: Use full SHA hash in release name detector --- CHANGELOG.md | 1 + sentry-ruby/lib/sentry/release_detector.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad4f615ec..cacbee00b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Features - Improve default slug generation for Crons [#2168](https://github.com/getsentry/sentry-ruby/pull/2168) +- Change release name generator to use full SHA commit hash and align with `sentry-cli` and other Sentry SDKs [#2174](https://github.com/getsentry/sentry-ruby/pull/2174) - Automatic Crons support for scheduling gems - Add support for [`sidekiq-cron`](https://github.com/sidekiq-cron/sidekiq-cron) [#2170](https://github.com/getsentry/sentry-ruby/pull/2170) diff --git a/sentry-ruby/lib/sentry/release_detector.rb b/sentry-ruby/lib/sentry/release_detector.rb index 7b0ad9995..a975520eb 100644 --- a/sentry-ruby/lib/sentry/release_detector.rb +++ b/sentry-ruby/lib/sentry/release_detector.rb @@ -28,7 +28,7 @@ def detect_release_from_capistrano(project_root) end def detect_release_from_git - Sentry.sys_command("git rev-parse --short HEAD") if File.directory?(".git") + Sentry.sys_command("git rev-parse HEAD") if File.directory?(".git") end def detect_release_from_env