Title: @sentry/vite-plugin 11: the default `release.setCommits` links no commits when no repository integration matches `origin`, and the build prints nothing · Issue #26705 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/vite-plugin 11: the default `release.setCommits` links no commits when no repository integration matches `origin`, and the build prints nothing · Issue #26705 · getsentry/sentry-javascript
X Title: @sentry/vite-plugin 11: the default `release.setCommits` links no commits when no repository integration matches `origin`, and the build prints nothing · Issue #26705 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/26705
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/vite-plugin 11: the default `release.setCommits` links no commits when no repository integration matches `origin`, and the build prints nothing","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/vite-plugin\n\n### SDK Version\n\n11.16.0 (also `develop` at bd2d38963e2734f7150b02c48c496e9ca4b67761)\n\n### Framework Version\n\nVite 8.3.5\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\nhttps://gist.github.com/YevheniiKotyrlo/15402b6b3b2763f06818e2a8afcd3098\n\nThe plugin call in the reproducer's app, with `release.setCommits` left unset:\n\n```js\nsentryVitePlugin({\n org: 'example-org',\n project: 'example-app',\n authToken: 'example-token',\n url: process.env.REPRO_SENTRY_URL,\n release: { name: 'example-app@1.0.0' },\n sourcemaps: { disable: true },\n telemetry: false,\n debug: process.env.REPRO_DEBUG === '1',\n})\n```\n\n### Steps to Reproduce\n\n1. In a git checkout whose `origin` remote is a repository the Sentry organization has no repository integration for (the organization has no repositories, or only other ones), add `sentryVitePlugin` as above, with `release.setCommits` unset.\n2. Run `vite build`.\n3. Look at the release's commits, and at the build output.\n\nThe reproducer takes these steps against a local stand-in for the Sentry API that records each request and answers the routes the plugin calls as sentry.io does. It needs Node, npm and git, and no Sentry account:\n\n```sh\ngit clone https://gist.github.com/15402b6b3b2763f06818e2a8afcd3098.git sentry-set-commits-repro\ncd sentry-set-commits-repro\nnode repro.mjs\n```\n\nIt installs `vite@8.3.5` and the latest `@sentry/vite-plugin` in a new temporary git checkout with one commit, whose `origin` is `https://github.com/example-org/example-app.git`, and builds six times: in each of three states of the organization's repositories (none; only `example-org/other-app`; `example-org/example-app`, which matches `origin`), once without and once with `debug: true`. It exits 0 when every build without `debug` links HEAD the expected way (in `commits` while no repository matches, in `refs` once one does), 1 when one links no commit or links it another way, and 2 when a step fails. `node repro.mjs 5.4.0` runs another version, and `node repro.mjs @sentry/vite-plugin=file:/path/to/sentry-vite-plugin-11.16.0.tgz @sentry/bundler-plugins=file:/path/to/sentry-bundler-plugins-11.16.0.tgz @sentry/core=file:/path/to/sentry-core-11.16.0.tgz` runs packages packed from a checkout.\n\n### Expected Result\n\nEvery build links the checkout's commit to the release: from local git history (`commits`) when no repository matches `origin`, as `@sentry/vite-plugin` 5.4.0 does with the same options, and through the repository integration (`refs`) when one does, as 11.16.0 already does. The build still succeeds.\n\nThe `sentry` CLI's `release set-commits` with no mode flag does this: it tries the integration and falls back to local git history when the organization has no repository integration or none that matches (https://github.com/getsentry/toolkit/blob/6b1325667ab44e4d93d1e38c2dab5b65577c1844/packages/cli/src/commands/release/set-commits.ts#L179-L227), while `--auto`, which the plugin passes, fails instead (https://github.com/getsentry/toolkit/blob/6b1325667ab44e4d93d1e38c2dab5b65577c1844/packages/cli/src/commands/release/set-commits.ts#L552-L555).\n\n### Actual Result\n\nWith no repository, or only `example-org/other-app`, no build sends HEAD in `commits` or `refs`, and the build output says nothing about it. Only `debug: true` prints the error the plugin swallowed. With `example-org/example-app`, HEAD goes in `refs`.\n\nOn `develop` at bd2d38963e2734f7150b02c48c496e9ca4b67761, with `packages/core`, `packages/bundler-plugins` and `packages/vite-plugin` packed by `pnpm pack`:\n\n```\nnode v26.12.1, win32 x64, git version 2.56.0.windows.4\n\n1. npm install vite@8.3.5 @sentry/vite-plugin@file:…/sentry-vite-plugin-11.16.0.tgz (overrides: @sentry/bundler-plugins@file:…/sentry-bundler-plugins-11.16.0.tgz, @sentry/core@file:…/sentry-core-11.16.0.tgz)\n installed: @sentry/vite-plugin 11.16.0, @sentry/bundler-plugins 11.16.0, sentry 0.50.0, vite 8.3.5\n\n2. git init, git commit, git remote add origin https://github.com/example-org/example-app.git\n HEAD 2fa15ec96db957f1ee78dd30a2c1d6feb2f09f04\n\n3.1 the organization's repositories: none; expected: HEAD in commits\n vite build (debug: false) exited 0\n warning or error lines about commits: none\n requests to Sentry (status, method, path):\n 200 GET /api/0/organizations/example-org/\n 201 POST /api/0/organizations/example-org/releases/\n 200 GET /api/0/organizations/example-org/releases/example-app%401.0.0/previous-with-commits/\n 200 GET /api/0/organizations/example-org/repos/ query=example-org/example-app\n 200 GET /api/0/organizations/example-org/repos/ query=example-app\n 200 GET /api/0/organizations/example-org/repos/ query=example app\n 200 GET /api/0/organizations/example-org/repos/\n 200 PUT /api/0/organizations/example-org/releases/example-app%401.0.0/ dateReleased\n => no commit linked, and nothing in the build output says so\n vite build (debug: true) exited 0\n debug lines about commits, and error lines: \n [sentry-vite-plugin] Debug: An error occurred setting commits on release (this message can be ignored unless you commits on release are desired): w [SentryError]: No repository integrations configured for this organization.\n\n3.2 the organization's repositories: only example-org/other-app; expected: HEAD in commits\n vite build (debug: false) exited 0\n warning or error lines about commits: none\n requests to Sentry (status, method, path):\n 200 GET /api/0/organizations/example-org/\n 201 POST /api/0/organizations/example-org/releases/\n 200 GET /api/0/organizations/example-org/releases/example-app%401.0.0/previous-with-commits/\n 200 GET /api/0/organizations/example-org/repos/ query=example-org/example-app\n 200 GET /api/0/organizations/example-org/repos/ query=example-app\n 200 GET /api/0/organizations/example-org/repos/ query=example app\n 200 GET /api/0/organizations/example-org/repos/\n 200 PUT /api/0/organizations/example-org/releases/example-app%401.0.0/ dateReleased\n => no commit linked, and nothing in the build output says so\n vite build (debug: true) exited 0\n debug lines about commits, and error lines: \n [sentry-vite-plugin] Debug: An error occurred setting commits on release (this message can be ignored unless you commits on release are desired): w [SentryError]: No Sentry repository matching 'example-org/example-app' (from the 'origin' git remote).\n\n3.3 the organization's repositories: example-org/example-app, matching origin; expected: HEAD in refs\n vite build (debug: false) exited 0\n warning or error lines about commits: none\n requests to Sentry (status, method, path):\n 200 GET /api/0/organizations/example-org/\n 201 POST /api/0/organizations/example-org/releases/\n 200 GET /api/0/organizations/example-org/releases/example-app%401.0.0/previous-with-commits/\n 200 GET /api/0/organizations/example-org/repos/ query=example-org/example-app\n 200 PUT /api/0/organizations/example-org/releases/example-app%401.0.0/ refs=example-org/example-app@2fa15ec96db957f1ee78dd30a2c1d6feb2f09f04\n 200 PUT /api/0/organizations/example-org/releases/example-app%401.0.0/ dateReleased\n => HEAD linked through refs\n vite build (debug: true) exited 0\n debug lines about commits, and error lines: none\n\nSummary: @sentry/vite-plugin 11.16.0, @sentry/bundler-plugins 11.16.0, sentry 0.50.0, vite 8.3.5. none: no commit linked, and nothing in the build output says so; only example-org/other-app: no commit linked, and nothing in the build output says so; example-org/example-app, matching origin: HEAD linked through refs. Exit 1.\n```\n\nThe debug line's own wording is garbled: \"this message can be ignored unless you commits on release are desired\" (https://github.com/getsentry/sentry-javascript/blob/bd2d38963e2734f7150b02c48c496e9ca4b67761/packages/bundler-plugins/src/core/build-plugin-manager.ts#L610) means \"this message can be ignored unless you want commits set on the release\".\n\n### Additional Context\n\n`node repro.mjs`, the 11.16.0 release, makes the same requests and ends:\n\n```\n[…]\nSummary: @sentry/vite-plugin 11.16.0, @sentry/bundler-plugins 11.16.0, sentry 0.50.0, vite 8.3.5. none: no commit linked, and nothing in the build output says so; only example-org/other-app: no commit linked, and nothing in the build output says so; example-org/example-app, matching origin: HEAD linked through refs. Exit 1.\n```\n\n`node repro.mjs 5.4.0` links HEAD in every state:\n\n```\nnode v26.12.1, win32 x64, git version 2.56.0.windows.4\n\n1. npm install vite@8.3.5 @sentry/vite-plugin@5.4.0\n installed: @sentry/vite-plugin 5.4.0, @sentry/bundler-plugins 10.78.0, @sentry/cli 2.58.6, vite 8.3.5\n\n2. git init, git commit, git remote add origin https://github.com/example-org/example-app.git\n HEAD 46560054f750885b6b6d4ccc4bcbd112ce65ae4a\n\n3.1 the organization's repositories: none; expected: HEAD in commits\n vite build (debug: false) exited 0\n warning or error lines about commits: none\n requests to Sentry (status, method, path):\n 201 POST /api/0/projects/example-org/example-app/releases/\n 200 GET /api/0/organizations/example-org/repos/\n 201 POST /api/0/projects/example-org/example-app/releases/\n 200 GET /api/0/organizations/example-org/releases/example-app@1.0.0/previous-with-commits/\n 200 PUT /api/0/organizations/example-org/releases/example-app@1.0.0/ commits=46560054f750885b6b6d4ccc4bcbd112ce65ae4a\n 200 PUT /api/0/projects/example-org/example-app/releases/example-app@1.0.0/ dateReleased\n => HEAD linked through commits\n[…]\nSummary: @sentry/vite-plugin 5.4.0, @sentry/bundler-plugins 10.78.0, @sentry/cli 2.58.6, vite 8.3.5. none: HEAD linked through commits; only example-org/other-app: HEAD linked through commits; example-org/example-app, matching origin: HEAD linked through refs. Exit 0.\n```\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>\n","author":{"url":"https://github.com/YevheniiKotyrlo","@type":"Person","name":"YevheniiKotyrlo"},"datePublished":"2026-11-20T14:59:31Z","url":"https://github.com/getsentry/sentry-javascript/issues/26705"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6f09445a-4fd8-5b45-d83c-60f2f264c94c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB7C:C727A:3175A9F:4058764:6B04243C |
| html-safe-nonce | 9a2fd13730d625b053a80e0bce2771d46e707d276a9509afdc12fa78273951f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjdDOkM3MjdBOjMxNzVBOUY6NDA1ODc2NDo2QjA0MjQzQyIsInZpc2l0b3JfaWQiOiIzODI5MjQ1Mzc1MjA2OTI1MzcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c9fb80365ac9cc7f326249d0417fe293b86224539331e4fb95d0506875b7fac |
| hovercard-subject-tag | issue:6513919013 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/26705/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3293e1d67cbf264ea92147d6df9f9ec727fd04a58ec63257e65596a4bf6f811/getsentry/sentry-javascript/issues/26705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3293e1d67cbf264ea92147d6df9f9ec727fd04a58ec63257e65596a4bf6f811/getsentry/sentry-javascript/issues/26705 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | YevheniiKotyrlo |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width