Repository navigation
ci: release on a seven-day cadence - #242
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughAdds a scheduled and manually triggered workflow that checks release cadence, selects an eligible release PR, and enables squash auto-merge when the PR body is not empty. ChangesRelease PR auto-merge
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant RepositoryHistory
participant ReleasePR
GitHubActions->>RepositoryHistory: Check release tags and commit subjects
GitHubActions->>ReleasePR: Select the most recently updated matching open PR
GitHubActions->>ReleasePR: Check PR body for non-whitespace text
GitHubActions->>ReleasePR: Enable squash auto-merge
Merge Risk: ⚪ Minimal · up to This adds a scheduled workflow that enables auto-merge on the release PR. No concrete merge-blocking risk was found. The author notes it was not tested locally, so run it with workflow_dispatch after merge as planned. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
https://entire.io/gh/jdx/demand/trails/23
Summary
Releases are currently cut whenever the release PR gets merged by hand. This adds the same
auto-merge-releaseworkflow that hk, tak, usage and fnox already use, so a release happens on a cadence instead:v*tag is at least 7 days oldfix/featcommit since that taggh pr merge --squash --auto, so required checks still gate the mergeMerging the release PR is still what triggers the existing release job; nothing else changes.
Test plan
workflow_dispatchto confirm it finds the release PR.AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.288.
🤖 Generated with Claude Code
Note
Medium Risk
Automates production releases via token-backed PR merge; mitigated by cadence guards, release-plz PR matching, and --auto waiting on CI.
Overview
Adds a scheduled GitHub Actions workflow
auto-merge-releaseso releases run on a cadence instead of only when someone merges the release-plz PR by hand.The job runs daily at 10:00 UTC (and on
workflow_dispatch, which bypasses cadence checks). On schedule it only proceeds if the latestv*tag is at least seven days old and there is at least onefix/featcommit since that tag; it then finds the open release-plz release PR tomain(branch prefix, title, and same-repo head checks) and merges it withgh pr merge --squash --autoso existing required checks still apply. Empty PR bodies are skipped until the next run. Merging that PR remains the sole trigger for the existing release-plz release job.Reviewed by Cursor Bugbot for commit a8da648. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit