Commit 8bae637
committed
🤖 ci: improve extract_pr_logs to show in-progress job steps
Shows step-by-step status for in-progress and pending jobs, making it much easier to debug CI runs that haven't completed yet.
**Key improvements:**
- Shows detailed step status (COMPLETED, IN_PROGRESS, PENDING) for jobs that are still running
- Highlights which step is currently running
- Provides direct link to view live logs in browser (GitHub API doesn't expose logs for in-progress jobs)
- Automatically detects in-progress jobs when no failures exist
- Simplified UX: removed --wait flag, pending jobs work automatically
- New --all flag to show all jobs regardless of status
- Better filtering logic to prioritize failed jobs, then in-progress jobs
**Example output for in-progress job:**
```
📊 Step-by-step status:
[COMPLETED] Set up job (success)
[COMPLETED] Checkout code (success)
[IN_PROGRESS] Run /./.github/actions/setup-cmux
[PENDING] Build application
🔄 Currently running: Run /./.github/actions/setup-cmux
👁️ View live logs: https://github.com/coder/cmux/actions/runs/.../job/...
```
_Generated with `cmux`_1 parent a368e6f commit 8bae637
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
184 | 194 | | |
185 | 195 | | |
186 | 196 | | |
0 commit comments