MCPcopy Index your code
hub / github.com/simstudioai/sim / buildPrBody

Function buildPrBody

apps/sim/executor/handlers/pi/cloud-backend.ts:135–140  ·  view source on GitHub ↗
(task: string, finalText: string)

Source from the content-addressed store, hash-verified

133}
134
135function 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. */
143function defaultTitle(params: PiCloudRunParams): string {

Callers 1

openPullRequestFunction · 0.85

Calls 1

truncateFunction · 0.90

Tested by

no test coverage detected