(issue_body: str)
| 42 | |
| 43 | |
| 44 | def parse_updated_lib_issue(issue_body: str) -> dict[str, LibUpdate]: |
| 45 | lines = issue_body.splitlines() |
| 46 | updated_libs = {} |
| 47 | for line in lines: |
| 48 | if line.strip().startswith("- "): |
| 49 | line = line.strip()[2:] |
| 50 | out = line.split(" ") |
| 51 | out = [x for x in out if x] |
| 52 | assert len(out) < 3 |
| 53 | if len(out) == 1: |
| 54 | updated_libs[out[0]] = LibUpdate() |
| 55 | elif len(out) == 2: |
| 56 | updated_libs[out[0]] = LibUpdate(out[1], check_pr(out[1])) |
| 57 | return updated_libs |
| 58 | |
| 59 | |
| 60 | def get_updated_libs() -> dict[str, LibUpdate]: |
no test coverage detected