(labels: list[str], body: str)
| 212 | |
| 213 | |
| 214 | def resolve_topic(labels: list[str], body: str) -> str: |
| 215 | value = label_value(labels, 'topic:') |
| 216 | if value: |
| 217 | return split_known_choice(value, PR_TYPES, 'Others') |
| 218 | sections = markdown_sections(body) |
| 219 | return split_known_choice( |
| 220 | section_value(sections, 'PR Types'), PR_TYPES, 'Others' |
| 221 | ) |
| 222 | |
| 223 | |
| 224 | def resolve_description(body: str) -> str: |
no test coverage detected