MCPcopy
hub / github.com/pyodide/pyodide / clear_backport_prs

Function clear_backport_prs

tools/backport.py:556–571  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

554
555
556def clear_backport_prs(args) -> None:
557 needs_backport_prs = get_needs_backport_pr_numbers()
558 stable_history = CommitHistory.from_git("stable")
559 to_clear = [
560 pr_number
561 for pr_number in needs_backport_prs
562 if stable_history.has_pr(pr_number)
563 ]
564 print("Removing the needs-backport label from the following PRs:")
565 print(" ", ", ".join(str(x) for x in to_clear), "\n")
566 if not args.yes:
567 input("Press enter to continue")
568 for pr_number in to_clear:
569 run(["gh", "pr", "edit", str(pr_number), "--remove-label", "needs backport"])
570 print("To reverse this, run")
571 print(f" ./tools/backport.py add-backport-pr {' '.join(str(x) for x in to_clear)}")
572
573
574def view_prs(commits):

Callers

nothing calls this directly

Calls 5

from_gitMethod · 0.80
has_prMethod · 0.80
joinMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…