Skip to content

feat: Only do automatic commit association for Vercel production environments #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Mar 31, 2025

Just noticed this is extremely spammy when you have your git email connected with Sentry.

@lforst lforst requested a review from Lms24 March 31, 2025 07:50
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me!

// We only want to set commits for the production env because Sentry becomes extremely noisy (eg on slack) for
// preview environments because the previous commit is always the "stem" commit of the preview/PR causing Sentry
// to notify you for other people creating PRs.
process.env["VERCEL_TARGET_ENV"] === "production"
Copy link
Member

@Lms24 Lms24 Mar 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way that users can overwrite this env variable for their production build? I guess though even if it's possible, it's probably an edge case we can ignore live with (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had the same thought: I think we just don't care. I don't think many people would change their prod env name at all.

@lforst lforst merged commit 95e5cca into main Mar 31, 2025
18 checks passed
@lforst lforst deleted the lforst-v-p-e branch March 31, 2025 07:55
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Apr 5, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.4 | 3.3.1 |


## [v3.3.1](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#331)

-   fix(webpack5): All `esm` files must have `.mjs` postfix ([#721](getsentry/sentry-javascript-bundler-plugins#721))


## [v3.3.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#330)

-   feat(webpack): Add `@sentry/webpack-plugin/webpack5` export for webpack 5.1+ and compatible environments ([#715](getsentry/sentry-javascript-bundler-plugins#715))
-   feat: Only do automatic commit association for Vercel production environments ([#711](getsentry/sentry-javascript-bundler-plugins#711))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Apr 5, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.4 | 3.3.1 |


## [v3.3.1](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#331)

-   fix(webpack5): All `esm` files must have `.mjs` postfix ([#721](getsentry/sentry-javascript-bundler-plugins#721))


## [v3.3.0](https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/HEAD/CHANGELOG.md#330)

-   feat(webpack): Add `@sentry/webpack-plugin/webpack5` export for webpack 5.1+ and compatible environments ([#715](getsentry/sentry-javascript-bundler-plugins#715))
-   feat: Only do automatic commit association for Vercel production environments ([#711](getsentry/sentry-javascript-bundler-plugins#711))
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.

2 participants