Skip to content

Commit c0ec1c3

Browse files
authored
fix(changelog-check): improve devDependencies section detection in git diffs (#101)
* fix(changelog-check): improve devDependencies section detection in git diffs * fix: use maximum context to ensure section headers are visible
1 parent 79ce6e3 commit c0ec1c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/changelog-check.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ async function analyzePackageJsonChanges(
202202
try {
203203
const { stdout } = await execa(
204204
'git',
205-
['diff', '-U20', `origin/${baseRef}...HEAD`, '--', filePath],
205+
[
206+
'diff',
207+
'-U9999', // Show maximum context to ensure section headers are visible
208+
`origin/${baseRef}...HEAD`,
209+
'--',
210+
filePath,
211+
],
206212
{
207213
cwd: repoPath,
208214
},

0 commit comments

Comments
 (0)