From 0cde5816e6ffd47913e8aeea1c5f5dfd8dd3119e Mon Sep 17 00:00:00 2001 From: Tommaso Morganti Date: Fri, 30 Oct 2026 19:38:54 +0100 Subject: [PATCH] chore: collapse drizzle snapshots in diffs and CodeRabbit reviews drizzle-kit writes a full copy of the schema with every migration. Mark the snapshots as generated so GitHub collapses them and local diffs show one line, and keep CodeRabbit on the .sql migrations. The CodeRabbit file inherits the UI settings, so nothing else changes. --- .coderabbit.yaml | 7 +++++++ .gitattributes | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 .coderabbit.yaml create mode 100644 .gitattributes diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..b1245d9 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json +# Keep every setting made in the CodeRabbit UI; this file only adds what is below. +inheritance: true +reviews: + path_filters: + # Generated by drizzle-kit: a full copy of the schema per migration. The .sql migration is what to review. + - "!drizzle/meta/*_snapshot.json" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e693ec1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# drizzle-kit regenerates a full copy of the schema with every migration: collapse it in PR reviews +# (linguist-generated) and in local `git diff` output (-diff). Merges still treat it as text. +drizzle/meta/*_snapshot.json linguist-generated=true -diff