0
Fork 0
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:
Gao Sun 2023-02-24 13:31:09 +08:00
parent 54ef69d4f4
commit 4861716727
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -14,7 +14,7 @@ const allAlterations = execSync("pnpm cli db alter list", {
.filter((filename) => Boolean(filename)) .filter((filename) => Boolean(filename))
.map((filename) => filename.replace(".js", "")); .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", encoding: "utf-8",
}); });
const committedAlterations = diffFiles const committedAlterations = diffFiles