Skip to content

fix: Use HEROKU_BUILD_COMMIT with HEROKU_SLUG_COMMIT as fallback#1220

Merged
ericapisani merged 1 commit intomasterfrom
ep/go-125-heroku-variables-7d5
Mar 5, 2026
Merged

fix: Use HEROKU_BUILD_COMMIT with HEROKU_SLUG_COMMIT as fallback#1220
ericapisani merged 1 commit intomasterfrom
ep/go-125-heroku-variables-7d5

Conversation

@ericapisani
Copy link
Member

@ericapisani ericapisani commented Mar 4, 2026

Heroku deprecated HEROKU_SLUG_COMMIT in favor of HEROKU_BUILD_COMMIT (Heroku Dyno Metadata docs). This updates the default release detection to check HEROKU_BUILD_COMMIT first, while keeping HEROKU_SLUG_COMMIT as a fallback for users on older Heroku stacks that may not have the new variable set.

Fixes GH-1218 and GO-125

Heroku deprecated HEROKU_SLUG_COMMIT in favor of HEROKU_BUILD_COMMIT.
Update the default release detection to check HEROKU_BUILD_COMMIT first,
keeping HEROKU_SLUG_COMMIT as a fallback for backwards compatibility with
older Heroku stacks.

Fixes GH-1218
Co-Authored-By: Claude <noreply@anthropic.com>
@linear
Copy link

linear bot commented Mar 4, 2026

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Add support for client reports by giortzisg in #1192
  • add org id propagation in sentry_baggage by giortzisg in #1210
  • add OrgID and StrictTraceContinuation client options. by giortzisg in #1210
  • Add the option to set attributes on the scope by giortzisg in #1208

Bug Fixes 🐛

  • (serialization) Pre-serialize mutable event fields to prevent race panics by giortzisg in #1214
  • Use HEROKU_BUILD_COMMIT with HEROKU_SLUG_COMMIT as fallback by ericapisani in #1220

Internal Changes 🔧

Deps

  • Bump getsentry/craft from 2.20.1 to 2.23.1 by dependabot in #1213
  • Bump github.com/gofiber/fiber/v2 from 2.52.11 to 2.52.12 in /fiber by dependabot in #1209

Other

  • (ai) Add dotagents configuration by giortzisg in #1211
  • Fix processor MutationAfterAdd test by giortzisg in #1219
  • Handle independent go module versions for integrations by giortzisg in #1217

🤖 This preview updates automatically when you update the PR.

@ericapisani ericapisani requested a review from giortzisg March 4, 2026 19:48
@ericapisani ericapisani marked this pull request as ready for review March 4, 2026 19:52
@ericapisani ericapisani merged commit d7b1a9a into master Mar 5, 2026
19 checks passed
@ericapisani ericapisani deleted the ep/go-125-heroku-variables-7d5 branch March 5, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HEROKU_SLUG_COMMIT is deprecated and should use HEROKU_BUILD_COMMIT [Go]

2 participants