Skip to content

Commit 7f1fbf8

Browse files
committed
Use template literal for log truncation message
Replace string concatenation with template literal for consistency with modern JavaScript style.
1 parent 30cca8b commit 7f1fbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/claude.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3656,7 +3656,7 @@ Commit the changes now.`
36563656

36573657
// Keep logs under 2000 chars to avoid context issues
36583658
const truncatedLogs = filteredLogs.length > 2000
3659-
? filteredLogs.substring(0, 2000) + '\n... (truncated)'
3659+
? `${filteredLogs.substring(0, 2000)}\n... (truncated)`
36603660
: filteredLogs
36613661

36623662
const fixPrompt = `Fix CI failure in "${job.name}" (run ${lastRunId}, commit ${currentSha.substring(0, 7)}).

0 commit comments

Comments
 (0)