ci: use `merge-base` to get a list of changed files for `lint:changed` commands
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.