(labels: list[str], body: str)
| 202 | |
| 203 | |
| 204 | def resolve_category(labels: list[str], body: str) -> str: |
| 205 | value = label_value(labels, 'release notes:') |
| 206 | if value: |
| 207 | return split_known_choice(value, PR_CATEGORIES, 'Others') |
| 208 | sections = markdown_sections(body) |
| 209 | return split_known_choice( |
| 210 | section_value(sections, 'PR Category'), PR_CATEGORIES, 'Others' |
| 211 | ) |
| 212 | |
| 213 | |
| 214 | def resolve_topic(labels: list[str], body: str) -> str: |
no test coverage detected