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

Function extract_pr_number

tools/commitlist.py:144–146  ·  view source on GitHub ↗
(title: str)

Source from the content-addressed store, hash-verified

142
143
144def extract_pr_number(title: str) -> int | None:
145 matches = PR_NUMBER_RE.findall(title or "")
146 return int(matches[-1]) if matches else None
147
148
149def split_known_choice(raw_text: str, choices: list[str], default: str) -> str:

Callers 1

collect_commitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected