Skip to content

Commit 9c41519

Browse files
authored
Increase node buffer to 20mb (#12)
1 parent 8d9a706 commit 9c41519

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

dist/generate-pr-patch/index.js

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/generate-pr-patch/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gitClient.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function execGit(
6363
...process.env,
6464
GIT_TERMINAL_PROMPT: '0'
6565
},
66-
maxBuffer: 10 * 1024 * 1024,
66+
maxBuffer: 20 * 1024 * 1024,
6767
encoding: 'utf-8'
6868
})
6969
return {
@@ -311,12 +311,14 @@ export async function getPullRequestDiff(
311311
export async function getFailedWorkflowRunLogs(
312312
workflowRunId: number
313313
): Promise<string> {
314-
const { stdout, stderr } = await execFileAsync('gh', [
315-
'run',
316-
'view',
317-
`${workflowRunId}`,
318-
'--log-failed'
319-
])
314+
const { stdout, stderr } = await execFileAsync(
315+
'gh',
316+
['run', 'view', `${workflowRunId}`, '--log-failed'],
317+
{
318+
maxBuffer: 20 * 1024 * 1024,
319+
encoding: 'utf-8'
320+
}
321+
)
320322
if (stderr) {
321323
core.warning(
322324
`Encountered stderr when getting failed workflow logs: ${stderr}`

0 commit comments

Comments
 (0)