Skip to content

Commit 6d3061e

Browse files
darrylb-githubgsalomao
authored andcommitted
feat: add collapsable section to house the diff in the PR comment
1 parent d324284 commit 6d3061e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/pr_comment.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ and the base branch
1515
([br-misty-resonance-a5jvokot](https://console.neon.tech/app/projects/holy-wind-90398863/branches/br-misty-resonance-a5jvokot))
1616
- Database: neondb
1717

18+
<details><summary>Diff</summary>
19+
<p>
20+
1821
```diff
1922
Index: neondb-schema.sql
2023
===================================================================
@@ -44,4 +47,7 @@ Index: neondb-schema.sql
4447

4548
```
4649

50+
</p>
51+
</details>
52+
4753
This comment was last updated at 11/20/2024 10:05:59 AM

src/diff.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,14 @@ Schema diff between the compare branch ([${compareBranch.name}](${compareBranchU
177177
- Compare branch: ${compareBranch.name} ([${compareBranch.id}](${compareBranchURL})) ${compareBranch.protected ? '🔒' : ''}
178178
- Database: ${database}
179179
180+
<details><summary>Diff</summary>
181+
<p>
182+
180183
${diffContent}
181184
185+
</p>
186+
</details>
187+
182188
This comment was last updated at ${new Date().toUTCString()}
183189
`
184190
}

0 commit comments

Comments
 (0)