MCPcopy
hub / github.com/pyodide/pyodide / get_needs_backport_pr_numbers

Function get_needs_backport_pr_numbers

tools/backport.py:54–61  ·  view source on GitHub ↗

Use gh cli to collect the set of PRs that are labeled as needs_backport.

()

Source from the content-addressed store, hash-verified

52
53@functools.cache
54def get_needs_backport_pr_numbers() -> tuple[int, ...]:
55 """Use gh cli to collect the set of PRs that are labeled as needs_backport."""
56 result = run(
57 ["gh", "pr", "list", "--label", "needs backport", "--state", "closed"],
58 capture_output=True,
59 )
60 lines = [line.split("\t", 1)[0] for line in result.stdout.splitlines()]
61 return tuple(sorted(int(line) for line in lines))
62
63
64@functools.cache

Callers 4

get_commitsFunction · 0.85
clear_backport_prsFunction · 0.85
show_not_backportedFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…