Skip to content

Exclude some paths in `workspaces`

Created by: malomarrec

User problem

When creating batch changes in a monorepo, with workspaces defined with rootatLocationOf, I want to exclude some workspaces by name

For example, in soourcegraph-examples, the spec below returns these 3 workspaces, but I want to exclude the "example" directory image

workspaces:
- rootAtLocationOf: package.json

Solutions considered

  • Add a rootAtQuery (instead of rootAtLocationOf). image

Impacted customers

https://github.com/sourcegraph/accounts/issues/6859