From 6d3061e74223b814c6ea2c7ea3d9d451aacdb746 Mon Sep 17 00:00:00 2001 From: Darryl Bresland <4264227+darrylb-github@users.noreply.github.com> Date: Sun, 24 Aug 2025 15:13:04 +0100 Subject: [PATCH 1/2] feat: add collapsable section to house the diff in the PR comment --- docs/pr_comment.md | 6 ++++++ src/diff.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/pr_comment.md b/docs/pr_comment.md index 43d559d..c36a9fb 100644 --- a/docs/pr_comment.md +++ b/docs/pr_comment.md @@ -15,6 +15,9 @@ and the base branch ([br-misty-resonance-a5jvokot](https://console.neon.tech/app/projects/holy-wind-90398863/branches/br-misty-resonance-a5jvokot)) - Database: neondb +
Diff +

+ ```diff Index: neondb-schema.sql =================================================================== @@ -44,4 +47,7 @@ Index: neondb-schema.sql ``` +

+
+ This comment was last updated at 11/20/2024 10:05:59 AM diff --git a/src/diff.ts b/src/diff.ts index b1fe66f..15e1938 100644 --- a/src/diff.ts +++ b/src/diff.ts @@ -177,8 +177,14 @@ Schema diff between the compare branch ([${compareBranch.name}](${compareBranchU - Compare branch: ${compareBranch.name} ([${compareBranch.id}](${compareBranchURL})) ${compareBranch.protected ? '🔒' : ''} - Database: ${database} +
Diff +

+ ${diffContent} +

+
+ This comment was last updated at ${new Date().toUTCString()} ` } From 9b4aa6fc080c3b8e2097b1443423eaa8a1e1b2fb Mon Sep 17 00:00:00 2001 From: Darryl Bresland <4264227+darrylb-github@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:46:15 +0100 Subject: [PATCH 2/2] Formatting --- docs/pr_comment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pr_comment.md b/docs/pr_comment.md index c36a9fb..95286af 100644 --- a/docs/pr_comment.md +++ b/docs/pr_comment.md @@ -48,6 +48,6 @@ Index: neondb-schema.sql ```

- + This comment was last updated at 11/20/2024 10:05:59 AM