Skip to content

Commit

Permalink
bugfix: Use full SHA hash in release name detector
Browse files Browse the repository at this point in the history
  • Loading branch information
natikgadzhi committed Nov 22, 2023
1 parent c7c8e5b commit e1c3fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/release_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1c3fbe

Please sign in to comment.