MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / resolve_topic

Function resolve_topic

tools/commitlist.py:214–221  ·  view source on GitHub ↗
(labels: list[str], body: str)

Source from the content-addressed store, hash-verified

212
213
214def 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
224def resolve_description(body: str) -> str:

Callers 1

_fetch_batchMethod · 0.85

Calls 4

label_valueFunction · 0.85
split_known_choiceFunction · 0.85
markdown_sectionsFunction · 0.85
section_valueFunction · 0.85

Tested by

no test coverage detected