VisCommandsvis affected

vis affected

Run tasks only on projects affected by recent git changes

vis affected

Detect which projects are affected by recent git changes and run a target only on those projects. Uses git diff to find changed files, maps them to projects, and includes transitively dependent projects.

Usage

vis affected <target> [options]

Examples

vis affected build
vis affected test --base=main
vis affected lint --base=HEAD~5 --head=HEAD

Options

OptionDefaultDescription
--baseHEAD~1Git base ref for comparison
--headHEADGit head ref for comparison
--parallel3Maximum number of parallel tasks
--cachetrueEnable caching (--no-cache to disable)
--dry-runfalseShow what would run without executing

How It Works

  1. Diff — Runs git diff between --base and --head to find changed files
  2. Map — Maps changed files to the projects that contain them
  3. Expand — Includes any projects that depend on the changed projects (transitively)
  4. Execute — Runs the target on affected projects only, in dependency order

Use Cases

CI Pipelines

Only test what changed in a pull request:

vis affected test --base=origin/main

Local Development

Run tests for recent changes:

vis affected test --base=HEAD~3
Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues