Commit 4041c38
fix(azure-devops): gate fallback returns False; treat fetch errors as fallback
- _can_run_incremental_review() now returns False (not True) when
incremental.commits_range is None, satisfying compliance ID 6 and
the test_can_run_returns_false_when_commits_range_none unit test.
- PRReviewer.run() distinguishes "gate disabled incremental" (fall
through to full review) from "gate said skip" (return early), so
the previous fallback log line now produces an actual full review.
- _get_incremental_commits() tracks had_errors so that transient Azure
get_changes failures disable incremental and fall back to a full
review instead of being silently skipped as "no new files".
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 63b58a6 commit 4041c38
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
343 | 346 | | |
344 | 347 | | |
345 | 348 | | |
346 | | - | |
| 349 | + | |
347 | 350 | | |
348 | 351 | | |
349 | 352 | | |
| |||
0 commit comments