mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: Remove changelog check and graphql (#2639)
This commit is contained in:
parent
b997e69ebc
commit
14759d5b72
4 changed files with 1 additions and 96 deletions
|
@ -1,34 +0,0 @@
|
|||
const { exec } = require("child_process");
|
||||
|
||||
const normalizePath = (path) => path.replace(/\\+/g, "/").trim().toLowerCase();
|
||||
|
||||
const IGNORED_PATHS = [
|
||||
"src/excalidraw-app",
|
||||
"packages/utils",
|
||||
"CHANGELOG.md",
|
||||
"README.md",
|
||||
].map(normalizePath);
|
||||
|
||||
exec("git diff origin/master --cached --name-only", (error, stdout, stderr) => {
|
||||
if (error || stderr) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!stdout || stdout.includes("packages/excalidraw/CHANGELOG.md")) {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
const changedFiles = stdout.trim().split("\n").map(normalizePath);
|
||||
|
||||
const excalidrawPackageFiles = changedFiles.filter((filename) => {
|
||||
return (
|
||||
filename.includes("src") &&
|
||||
!IGNORED_PATHS.find((ignoredPath) => filename.includes(ignoredPath))
|
||||
);
|
||||
});
|
||||
|
||||
if (excalidrawPackageFiles.length) {
|
||||
process.exit(1);
|
||||
}
|
||||
process.exit(0);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue