|
17 | 17 |
|
18 | 18 |
|
19 | 19 | COMMANDS = { |
20 | | - "/run-spotless": "run_spotless", |
21 | | - "/fix-ci": "fix_ci", |
22 | | - "/resolve-conflicts": "resolve_conflicts", |
| 20 | + "/spotless": "spotless", |
| 21 | + "/fix": "fix", |
| 22 | + "/update-branch": "update_branch", |
23 | 23 | "/review": "review", |
24 | 24 | } |
25 | 25 | OUTPUT_LIMIT = 6000 |
@@ -120,12 +120,12 @@ def output_file() -> Path: |
120 | 120 |
|
121 | 121 |
|
122 | 122 | def command_args(command: str) -> list[str]: |
123 | | - if command == "run_spotless": |
124 | | - return [sys.executable, ".github/scripts/pr-triage/run_spotless.py", pr_number()] |
125 | | - if command == "fix_ci": |
126 | | - return [sys.executable, ".github/scripts/pr-triage/fix_ci.py", pr_number()] |
127 | | - if command == "resolve_conflicts": |
128 | | - return [sys.executable, ".github/scripts/pr-triage/resolve_conflicts.py", pr_number()] |
| 123 | + if command == "spotless": |
| 124 | + return [sys.executable, ".github/scripts/pr-triage/spotless.py", pr_number()] |
| 125 | + if command == "fix": |
| 126 | + return [sys.executable, ".github/scripts/pr-triage/fix.py", pr_number()] |
| 127 | + if command == "update_branch": |
| 128 | + return [sys.executable, ".github/scripts/pr-triage/update_branch.py", pr_number()] |
129 | 129 | if command == "review": |
130 | 130 | return [sys.executable, ".github/scripts/pr-triage/review.py", pr_number()] |
131 | 131 | raise RuntimeError(f"Unknown command: {command}") |
|
0 commit comments