(args)
| 554 | |
| 555 | |
| 556 | def 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 | |
| 574 | def view_prs(commits): |
nothing calls this directly
no test coverage detected
searching dependent graphs…