(args: list[str])
| 95 | |
| 96 | |
| 97 | def _run_gh(args: list[str]) -> str: |
| 98 | result = subprocess.run( |
| 99 | ["gh"] + args, |
| 100 | capture_output=True, |
| 101 | text=True, |
| 102 | encoding="utf-8", |
| 103 | errors="replace", |
| 104 | check=True, |
| 105 | ) |
| 106 | return result.stdout |
| 107 | |
| 108 | |
| 109 | def _current_pr() -> Optional[int]: |
no test coverage detected