Commit ef47e2c
committed
Improve get_pull_request_ci_failures tool for comprehensive CI failure detection
- Query workflow runs for both head SHA and merge commit SHA to catch all CI runs
- Add pagination for ListWorkflowJobs to find failures beyond the first page
- Fetch third-party check runs (e.g., dorny/test-reporter) with annotations
- Add configurable parameters: include_annotations, include_logs, tail_lines, max_failed_jobs
- Use generic failure detection (no company-specific heuristics)
- Increase bufio.Scanner buffer to 10MB to handle very long log lines
- Add unit tests for merge SHA discovery, paginated jobs, and third-party check runs1 parent d77a320 commit ef47e2c
File tree
4 files changed
+1130
-144
lines changed- pkg
- buffer
- github
- __toolsnaps__
4 files changed
+1130
-144
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
15 | 30 | | |
16 | 31 | | |
17 | 32 | | |
| |||
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 42 | | |
33 | 43 | | |
34 | | - | |
35 | | - | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
37 | 47 | | |
38 | 48 | | |
| |||
0 commit comments