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

Function defaultTitle

apps/sim/executor/handlers/pi/cloud-backend.ts:143–145  ·  view source on GitHub ↗

The commit message and PR title share one default, derived from the PR title or task.

(params: PiCloudRunParams)

Source from the content-addressed store, hash-verified

141
142/** The commit message and PR title share one default, derived from the PR title or task. */
143function defaultTitle(params: PiCloudRunParams): string {
144 return params.prTitle?.trim() || truncate(`Pi: ${params.task}`, COMMIT_TITLE_MAX)
145}
146
147async function openPullRequest(
148 params: PiCloudRunParams,

Callers 2

openPullRequestFunction · 0.85
runCloudPiFunction · 0.85

Calls 1

truncateFunction · 0.90

Tested by

no test coverage detected