Get repository in owner/repo format.
(self)
| 89 | return run_input |
| 90 | |
| 91 | def _get_repo(self) -> str: |
| 92 | """Get repository in owner/repo format.""" |
| 93 | try: |
| 94 | result = subprocess.run( |
| 95 | ["gh", "repo", "view", "--json", "nameWithOwner"], |
| 96 | capture_output=True, |
| 97 | text=True, |
| 98 | check=True, |
| 99 | timeout=10, |
| 100 | ) |
| 101 | data = json.loads(result.stdout) |
| 102 | return data["nameWithOwner"] |
| 103 | except KeyboardInterrupt as ki: |
| 104 | handle_keyboard_interrupt(ki) |
| 105 | raise |
| 106 | except Exception as e: |
| 107 | print(f"Error getting repo info: {e}", file=sys.stderr) |
| 108 | return "FastLED/FastLED" # Default fallback |
| 109 | |
| 110 | def get_run_info(self) -> dict[str, str]: |
| 111 | """Get basic run information.""" |
no test coverage detected