ci: land release-notes regen on main via PR instead of committing to release - #21
Conversation
…release stable-release.yml's final step committed the regenerated docs/release-notes.md directly to the release branch, making release diverge from main and permanently tripping the workflow's own fast-forward guard on every cut after the first. Regenerate after publish as before (the notes must include the just-cut release), but land the commit on main via a short-lived branch + PR with best-effort auto-merge (the ardd-badge.yml idiom — main's protection blocks direct pushes). release is now only ever pushed main SHAs, so the guard cannot trip again; its copy of the notes trails by one cut (cosmetic — the docs site builds from main). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPyUE4w2CWGbtyafYfhhxw
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe stable release workflow now regenerates release notes after publishing, commits changes only when needed, and submits them to ChangesStable release notes integration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/stable-release.yml:
- Around line 135-139: Update the release-notes branch and pull-request flow
around the branch variable to be idempotent across workflow reruns: reuse the
existing remote branch and associated PR when present, or incorporate
GITHUB_RUN_ATTEMPT with explicit deduplication. Ensure reruns do not fail on
pushing an already-existing branch or create duplicate delivery attempts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f6a39300-3d2e-4ff2-9fad-da871cf495cd
📒 Files selected for processing (1)
.github/workflows/stable-release.yml
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPyUE4w2CWGbtyafYfhhxw
stable-release.yml's final step committed the regenerated docs/release-notes.md directly to the
releasebranch, makingreleasediverge frommainand permanently tripping the workflow's own fast-forward guard on every cut after the first (today's v1.2.0 dispatch failed exactly there;releasewas manually reset to main to unblock).This keeps regeneration after publish — the notes must include the just-cut release, since release-notes.sh reads the GitHub releases API — but lands the commit on
mainvia a short-lived branch + PR with best-effort auto-merge (the ardd-badge.yml idiom; main's branch protection blocks direct workflow pushes).releaseis now only ever pushed main SHAs, so the ff-guard cannot trip again. Its copy of the notes trails by one cut, which is cosmetic — the docs site builds from main.🤖 Generated with Claude Code
https://claude.ai/code/session_01DPyUE4w2CWGbtyafYfhhxw
Summary by CodeRabbit