Skip to content

feat: Detect Vercel commits and env #694

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 9 commits into from
Mar 5, 2025
Merged

Conversation

lforst
Copy link

@lforst lforst commented Mar 5, 2025

Fixes #443

Also adds ignoreMissing and ignoreEmpty to the default fallback because we do not want to throw at all if possible.

@lforst lforst changed the base branch from abhi-auto-set-commits to lforst-auto-release March 5, 2025 10:19
@lforst lforst marked this pull request as ready for review March 5, 2025 12:13
@lforst lforst requested a review from chargome March 5, 2025 12:13
process.env["VERCEL_GIT_REPO_OWNER"]
) {
options.release.setCommits = {
// @ts-expect-error This is fine
Copy link
Member

Choose a reason for hiding this comment

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

Should we just update the type interface?

Copy link
Author

Choose a reason for hiding this comment

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

You're the angel on my shoulder.

Base automatically changed from lforst-auto-release to main March 5, 2025 12:58
@lforst lforst merged commit d55ca96 into main Mar 5, 2025
18 checks passed
@lforst lforst deleted the lforst-detect-vercel-env branch March 5, 2025 13:43
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 28, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.2 | 3.2.3 |


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

-   feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))
-   feat(webpack): Primarily use `contentHash` for debug ID hash ([#702](getsentry/sentry-javascript-bundler-plugins#702))
-   feat: Detect Vercel commits and env ([#694](getsentry/sentry-javascript-bundler-plugins#694))
-   feat: Default to automatically setting commits on release ([#692](getsentry/sentry-javascript-bundler-plugins#692))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 28, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.2 | 3.2.3 |


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

-   feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))
-   feat(webpack): Primarily use `contentHash` for debug ID hash ([#702](getsentry/sentry-javascript-bundler-plugins#702))
-   feat: Detect Vercel commits and env ([#694](getsentry/sentry-javascript-bundler-plugins#694))
-   feat: Default to automatically setting commits on release ([#692](getsentry/sentry-javascript-bundler-plugins#692))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 29, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.2 | 3.2.4 |


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

-   Revert "feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))" ([#709](getsentry/sentry-javascript-bundler-plugins#709))
-   ref: Remove deprecated use of `useArtifacBundles` ([#707](getsentry/sentry-javascript-bundler-plugins#707))


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

-   feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))
-   feat(webpack): Primarily use `contentHash` for debug ID hash ([#702](getsentry/sentry-javascript-bundler-plugins#702))
-   feat: Detect Vercel commits and env ([#694](getsentry/sentry-javascript-bundler-plugins#694))
-   feat: Default to automatically setting commits on release ([#692](getsentry/sentry-javascript-bundler-plugins#692))
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Mar 30, 2025
| datasource | package             | from  | to    |
| ---------- | ------------------- | ----- | ----- |
| npm        | @sentry/vite-plugin | 3.2.2 | 3.2.4 |


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

-   Revert "feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))" ([#709](getsentry/sentry-javascript-bundler-plugins#709))
-   ref: Remove deprecated use of `useArtifacBundles` ([#707](getsentry/sentry-javascript-bundler-plugins#707))


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

-   feat(core): Use path instead of debug IDs as artifact names for debug ID upload ([#700](getsentry/sentry-javascript-bundler-plugins#700))
-   feat(webpack): Primarily use `contentHash` for debug ID hash ([#702](getsentry/sentry-javascript-bundler-plugins#702))
-   feat: Detect Vercel commits and env ([#694](getsentry/sentry-javascript-bundler-plugins#694))
-   feat: Default to automatically setting commits on release ([#692](getsentry/sentry-javascript-bundler-plugins#692))
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.

setCommits in sentryWebpackPluginOptions for next.js doesn't seem to work on Vercel
2 participants