(task: string, finalText: string)
| 133 | } |
| 134 | |
| 135 | function buildPrBody(task: string, finalText: string): string { |
| 136 | const summary = finalText.trim() |
| 137 | ? truncate(finalText.trim(), PR_SUMMARY_MAX) |
| 138 | : 'Automated changes by the Pi Coding Agent.' |
| 139 | return `## Task\n\n${task}\n\n## Summary\n\n${summary}` |
| 140 | } |
| 141 | |
| 142 | /** The commit message and PR title share one default, derived from the PR title or task. */ |
| 143 | function defaultTitle(params: PiCloudRunParams): string { |
no test coverage detected