The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix modified files DangerCI (#3025)
brendanlaschke1e3395973335
diff --git a/packages/twenty-utils/dangerfile.ts b/packages/twenty-utils/dangerfile.tsindex 17ab6fc2e5c..d285b054666 100644--- a/packages/twenty-utils/dangerfile.ts+++ b/packages/twenty-utils/dangerfile.ts@@ -6,8 +6,8 @@ function getMdSection(category: string, message: string) {}// Check if package.json was changed, but not yarn.lock-const packageChanged = danger.git.modified_files.includes("package.json");-const lockfileChanged = danger.git.modified_files.includes("yarn.lock");+const packageChanged = danger.git.modified_files.find(x=>x.includes("package.json"));+const lockfileChanged = danger.git.modified_files.find(x=>x.includes("yarn.lock"));if (packageChanged && !lockfileChanged) {const message = "Changes were made to package.json, but not to yarn.lock";const idea = "Perhaps you need to run `yarn install`?";@@ -16,8 +16,8 @@ if (packageChanged && !lockfileChanged) {// Check if .env.example was changed, but not enviroment variable documentationconst envChanged =- danger.git.modified_files.includes(".env.example") ||- danger.git.modified_files.includes("environment.service.ts");+ danger.git.modified_files.find(x=>x.includes(".env.example")) ||+ danger.git.modified_files.find(x=>x.includes("environment.service.ts"));const envDocsChanged = danger.git.modified_files.includes("enviroment-variables.mdx");