- Get the Email of the current User/Developer/Author/Committer.
- Resolve the Email through the Git Mailmap.
- Get all files they have ever created or modified.
- Get all files modified in the current branch compared to master.
- Some files they've modified could have since been deleted by someone else, so filter out files which no longer exist.
Instead of running ESLint over the entire codebase in every Pull Request, only lint files which have changed. Plus, in order to present warnings for Technical Debt incurred in the past, also lint files the current Developer has touched in the past.
Get everything
./all_local_changes.sh
Get js|jsx|ts|tsx files only
./all_local_changes.sh JS
Get css|scss files only
./all_local_changes.sh CSS