Commit f6a87c8
authored
fix(stack): surface fetch_old_pr_heads failures instead of swallowing (#1315)
The exception handler around `fetch_old_pr_heads` previously did a
silent `pass`, leaving every revision-history entry stamped
"unknown" with no clue why. When a real failure happens (fork remote
without `refs/pull/N/head`, network error, missing permissions, …)
the user has no signal that anything went wrong — they only see the
symptom in the PR comment days later.
Log the underlying error in orange so the cause is visible at push
time. The exception text is run through `rich.markup.escape` so any
`[`/`]` in the git error message is rendered literally rather than
parsed as Rich markup. Behaviour stays non-fatal: classification
still falls back to "unknown" and the push proceeds.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Depends-On: #13161 parent b35651e commit f6a87c8
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
585 | | - | |
586 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
| |||
0 commit comments