(msg: string, maxLen = 150)
| 703 | |
| 704 | // Helper to clean and truncate message for notifications |
| 705 | const cleanMessage = (msg: string, maxLen = 150): string => { |
| 706 | // Take only first line |
| 707 | let cleaned = msg.split("\n")[0].trim(); |
| 708 | if (cleaned.length > maxLen) { |
| 709 | cleaned = cleaned.slice(0, maxLen - 3) + "..."; |
| 710 | } |
| 711 | return cleaned; |
| 712 | }; |
| 713 | |
| 714 | // Use notifications for errors and warnings |
| 715 | if (type === 1 || type === 2) { |
nothing calls this directly
no outgoing calls
no test coverage detected