Commit aad6bb0
Address Dan's review feedback: shorter minimumReleaseAge + precise wording (#757)
* Address Dan's review feedback on #748
Two small follow-ups:
1. minimumReleaseAge: 24 hours -> 1 hour. Dan flagged that 24h is
overcautious for first-party Stacklok releases. Renovate itself
only runs every 4h so 1h is effectively close to 0 while still
protecting against same-day yanks/reverts.
2. prBodyNotes: drop "regenerates" where we're actually just syncing.
Now precisely: "syncs reference assets (CLI help, Swagger) and
regenerates the CRD MDX pages" for toolhive.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Filter reviewers to repo collaborators only
Previous behavior pulled every non-bot commit author from the upstream
release range and passed them to `gh pr edit --add-reviewer` as a
single comma-separated list. GitHub rejects reviewer requests for
non-collaborators with 422, and because the API treats the list
atomically, one community contributor in the range would fail the
entire call and drop all valid reviewers with it.
Fix:
- Probe each candidate with `gh api repos/<repo>/collaborators/<user>`
before adding. 204 -> keep; 404 -> skip.
- Emit a separate `skipped` output listing non-collaborator
contributors so the PR body can acknowledge them by name
("Other release contributors ... Thanks for the contribution!")
without actually requesting review from them.
Pre-existing bot-regex filter runs first so we don't waste API calls
on [bot] users.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Drop non-collaborator acknowledgment from PR body
Filtering out non-collaborator reviewers stays (prevents the 422
whole-call-failure). But mentioning them by name in the augmented PR
body adds notification surface we don't want. Silently skip.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 99fd4f8 commit aad6bb0
2 files changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | | - | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 375 | | |
379 | 376 | | |
380 | | - | |
| 377 | + | |
381 | 378 | | |
382 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
383 | 402 | | |
384 | 403 | | |
385 | 404 | | |
| |||
603 | 622 | | |
604 | 623 | | |
605 | 624 | | |
606 | | - | |
| 625 | + | |
607 | 626 | | |
608 | 627 | | |
609 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments