You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Support path/subdirectory filtering in releases set-commits for monorepo setups #1156
Currently, sentry-cli releases set-commits associates commits at the repository level only. The --commit flag accepts REPO@SHA or REPO@prev-sha..current-sha but has no option to filter commits by path or subdirectory.
For monorepo setups where multiple apps share a single repository, this means a release for a specific app (e.g. an Expo mobile app) will include commits from unrelated areas of the repo (e.g. backend, web) within the same range.
I am transferring this issue over to the repository for our new Sentry CLI, as that CLI also supports release creation, but does not yet appear to support the subdirectory filtering requested here.
thanks for filling this @dalnoki . We're working on it, we'll probably introduce it with a --path to be able to do something like --path apps/mobile and multiple paths with separated commas --path apps/mobile,apps/shared
just merged this @dalnoki ! you can try it out by upgrading to our nightly channel: sentry cli upgrade nightly.
for context, every commit go into nightly first. Once we cut a release, it gets promoted to the stable channel, so this will be available there soon too.
thanks for filling this @dalnoki . We're working on it, we'll probably introduce it with a --path to be able to do something like --path apps/mobile and multiple paths with separated commas --path apps/mobile,apps/shared
Thanks for the quick turnaround @betegon! Will this likely make it into the next release this week? 0.39.0?
I was testing the nightly build and wonder if this can fit our use case. I'm trying to associate commits from our last app release (per environment) up to our current, filtering by files changed. E.g.
Due to --commit being a hard error, i'm not sure how I would best achieve this? It works without of course, but if I set a large depth, is it smart enough to know what was included in the last release to ensure we have everything?
I've got a backup API version where I create the payload myself, but it's little verbose.
*Additionally sorry — sentry release set-commits org/version --clear doesn't seem to work in the currently nightly 0.39.0-dev.1782750614
We can't do --commit ... --path as commits sends a ref range to sentry which expands it server-side via our github repo integration, and our API doesn't have the concept of --path, the path argument works locally. But the approach above should let you achieve your goal
Activity
linear-code commentedon Jun 25, 2026
CLI-339
szokeasaurusrex commentedon Jun 29, 2026
I am transferring this issue over to the repository for our new Sentry CLI, as that CLI also supports release creation, but does not yet appear to support the subdirectory filtering requested here.
betegon commentedon Jun 29, 2026
thanks for filling this @dalnoki . We're working on it, we'll probably introduce it with a
--pathto be able to do something like--path apps/mobileand multiple paths with separated commas--path apps/mobile,apps/sharedbetegon commentedon Jun 29, 2026
just merged this @dalnoki ! you can try it out by upgrading to our nightly channel:
sentry cli upgrade nightly.for context, every commit go into nightly first. Once we cut a release, it gets promoted to the stable channel, so this will be available there soon too.
Let us know if you find it useful!
ryanpato commentedon Jun 29, 2026
Thanks for the quick turnaround @betegon! Will this likely make it into the next release this week? 0.39.0?
betegon commentedon Jun 29, 2026
@ryanpato Yes! we'll do a release this week. we like to try new stuff in nightly for a bit just in case. It will be out in 0.39.0, exactly.
Let us know if you would want some other feats in the CLI!
ryanpato commentedon Jul 1, 2026
I was testing the nightly build and wonder if this can fit our use case. I'm trying to associate commits from our last app release (per environment) up to our current, filtering by files changed. E.g.
I was hoping for something like:
Due to
--commitbeing a hard error, i'm not sure how I would best achieve this? It works without of course, but if I set a large depth, is it smart enough to know what was included in the last release to ensure we have everything?I've got a backup API version where I create the payload myself, but it's little verbose.
*Additionally sorry —
sentry release set-commits org/version --cleardoesn't seem to work in the currently nightly0.39.0-dev.1782750614fix(release): make set-commits --clear actually clear commits (#1196)
feat(release): add --from to scope set-commits to a local range
feat(release): add --from to scope set-commits to a local range
betegon commentedon Jul 6, 2026
Hey @ryanpato !
--clearwas broken, fixed on fix(release): make set-commits --clear actually clear commits #1196 . already in nightly.--from $last_release_tag --path apps/app1,apps/app2(local git, explicit tag..HEAD range). Coming in feat(release): add --from to scope set-commits to a local range #1197So i'd work like:
sentry release set-commits org/version --from "$last_release_tag" --path apps/app1,apps/app2We can't do
--commit ... --pathas commits sends a ref range to sentry which expands it server-side via our github repo integration, and our API doesn't have the concept of--path, the path argument works locally. But the approach above should let you achieve your goalfeat(release): add --from to scope set-commits to a local range (#1197)
feat(release): filter set-commits by path for monorepos (CLI-339) (ge…