(text)
| 149 | |
| 150 | // Infer a status from inline markers / emojis in a line of text. |
| 151 | function statusFromText(text) { |
| 152 | const t = text.toLowerCase(); |
| 153 | if (/[✅✔]|\bdone\b|\bcompleted?\b|\bpassed?\b/.test(t)) return "done"; |
| 154 | if (/[❌✖]|\bfailed?\b|\berror\b|\bblocked\b/.test(t)) return "failed"; |
| 155 | if (/[⏳🔄]|in progress|in-progress|ongoing|running|wip/.test(t)) return "in_progress"; |
| 156 | return null; |
| 157 | } |
| 158 | |
| 159 | // Parse GitHub-style task list items: "- [ ] ...", "- [x] ...", "- [/] ...". |
| 160 | // Each item also carries the nearest preceding heading as its `section`. |
no outgoing calls
no test coverage detected