Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hooks: Tell Sentry the explicit commit range.
Alex Vandiveredfc91164902
diff --git a/puppet/zulip/files/hooks/pre-deploy.d/sentry.hook b/puppet/zulip/files/hooks/pre-deploy.d/sentry.hookindex 6fc2b64ef0e..32489eee8e3 100755--- a/puppet/zulip/files/hooks/pre-deploy.d/sentry.hook+++ b/puppet/zulip/files/hooks/pre-deploy.d/sentry.hook@@ -24,8 +24,9 @@ curl "https://sentry.io/api/0/organizations/$sentry_org/releases/" \merge_base="${ZULIP_NEW_MERGE_BASE_COMMIT:-}"if [ -n "$merge_base" ]; then+ old_merge_base="$ZULIP_OLD_MERGE_BASE_COMMIT"echo "sentry: Setting commit range based on merge-base to upstream of $merge_base"- sentry-cli releases --org="$sentry_org" set-commits "$sentry_release" --commit="zulip/zulip@$merge_base"+ sentry-cli releases --org="$sentry_org" set-commits "$sentry_release" --commit="zulip/zulip@$old_merge_base..$merge_base"fiif [ -n "$sentry_frontend_project" ]; then