* Classify issue text into one type label and zero or more domains. * * @param {string} title * @param {string} body * @returns {{type: string|null, domains: string[]}}
(title, body)
| 343 | * @returns {{type: string|null, domains: string[]}} |
| 344 | */ |
| 345 | function classifyIssueText(title, body) { |
| 346 | const scores = scoreTypeFromText(title, body); |
| 347 | const type = chooseTypeFromScores(scores); |
| 348 | const domains = collectDomainsFromText(title, body); |
| 349 | return { type, domains }; |
| 350 | } |
| 351 | |
| 352 | /** |
| 353 | * Format a GitHub issue reference for logs. |
no test coverage detected