* Builds the document title, preferring the issue title and falling back to the * metadata type/value or short id.
(issue: SentryIssue)
| 230 | * metadata type/value or short id. |
| 231 | */ |
| 232 | function 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 |
no outgoing calls
no test coverage detected