mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: check alteration diff for new files only
This commit is contained in:
parent
54ef69d4f4
commit
4861716727
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const allAlterations = execSync("pnpm cli db alter list", {
|
|||
.filter((filename) => Boolean(filename))
|
||||
.map((filename) => filename.replace(".js", ""));
|
||||
|
||||
const diffFiles = execSync("git diff --name-only HEAD HEAD~1", {
|
||||
const diffFiles = execSync("git diff HEAD~1 HEAD --name-only --diff-filter=ACR", {
|
||||
encoding: "utf-8",
|
||||
});
|
||||
const committedAlterations = diffFiles
|
||||
|
|
Loading…
Reference in a new issue