From c6005710510500e55c7097f523156d424f8c93bf Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Thu, 20 Nov 2025 09:36:30 +0100 Subject: [PATCH] fix(ci): Restore Sentry vcsInfo configuration for release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-add the vcsInfo block to the Sentry Gradle configuration to properly set the headRef to "release" when running in GitHub release workflows. This ensures correct commit association in Sentry's release tracking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- android/app/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f77b63d4..30b8c504 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -126,6 +126,14 @@ sentry { updateSdkVariants.add("beta") } + vcsInfo { + // Set headRef to "release" when running in GitHub release workflow + val eventName = providers.environmentVariable("GITHUB_EVENT_NAME").orNull + if (eventName == "release") { + headRef.set("release") + } + } + debug = true }