(pr: PR)
| 660 | |
| 661 | @staticmethod |
| 662 | def run(pr: PR): |
| 663 | info = None |
| 664 | try: |
| 665 | info = pr.merge_if_passed_checks() |
| 666 | except Exception as e: |
| 667 | pr.comment_failure("Failed to process merge request", e) |
| 668 | raise e |
| 669 | |
| 670 | if info is not None: |
| 671 | try: |
| 672 | pr.trigger_gha_ci(sha=info["sha"]) |
| 673 | except Exception as e: |
| 674 | pr.comment_failure("Failed to trigger GitHub Actions", e) |
| 675 | raise e |
| 676 | |
| 677 | |
| 678 | class Rerun: |