Get basic run information.
(self)
| 108 | return "FastLED/FastLED" # Default fallback |
| 109 | |
| 110 | def get_run_info(self) -> dict[str, str]: |
| 111 | """Get basic run information.""" |
| 112 | try: |
| 113 | result = subprocess.run( |
| 114 | [ |
| 115 | "gh", |
| 116 | "run", |
| 117 | "view", |
| 118 | self.run_id, |
| 119 | "--json", |
| 120 | "displayTitle,status,conclusion,createdAt", |
| 121 | ], |
| 122 | capture_output=True, |
| 123 | text=True, |
| 124 | check=True, |
| 125 | timeout=10, |
| 126 | ) |
| 127 | return json.loads(result.stdout) |
| 128 | except KeyboardInterrupt as ki: |
| 129 | handle_keyboard_interrupt(ki) |
| 130 | raise |
| 131 | except Exception as e: |
| 132 | print(f"Error getting run info: {e}", file=sys.stderr) |
| 133 | return {} |
| 134 | |
| 135 | def get_failed_jobs(self) -> list[dict[str, str]]: |
| 136 | """Get list of failed jobs.""" |
no test coverage detected