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

Function buildTitle

apps/sim/connectors/sentry/sentry.ts:232–240  ·  view source on GitHub ↗

* Builds the document title, preferring the issue title and falling back to the * metadata type/value or short id.

(issue: SentryIssue)

Source from the content-addressed store, hash-verified

230 * metadata type/value or short id.
231 */
232function buildTitle(issue: SentryIssue): string {
233 const title = issue.title?.trim()
234 if (title) return title
235
236 const metaType = issue.metadata?.type?.trim()
237 const metaValue = issue.metadata?.value?.trim()
238 if (metaType && metaValue) return `${metaType}: ${metaValue}`
239 return metaType || issue.shortId || `Issue ${issue.id}`
240}
241
242/**
243 * Collects the source-specific metadata fed to mapTags. Shared between the list stub and

Callers 3

issueToStubFunction · 0.70
formatIssueContentFunction · 0.70
sentry.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected