This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { execSync } = require("child_process"); | |
| // get the reference to a common ancestor in this branch vs the origin/main branch | |
| const ref = execSync(`git merge-base main HEAD`); | |
| // get the list of files changed since the common ancestor | |
| let fileList = execSync(`git diff --name-only ${ref}`).toString().split('\n'); | |
| // used to test the script locally | |
| // fileList.push('.changeset/odd-wombats-vanish.md'); |
OlderNewer