Skip to content

ci: use `merge-base` to get a list of changed files for `lint:changed` commands

Administrator requested to merge vb/improve-lint-changed into main

Created by: valerybugakov

Context

If we want to lint the diffs between the last common ancestor, aka the merge-base we started a new branch, we can use: git diff --diff-filter=d --name-only origin/main... to make lint:changed commands more predictable.

Great explanation here. Slack thread for context.

Test plan

Run yarn lint:js:changed from different merge-bases.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading