You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(docs): gate Renovate auto-merge on Cloudflare preview - #590
Enable squash auto-merge for Renovate updates once lint and the Cloudflare preview pass on the current pull request commit.
How it works
Require the Renovate merge checks job in GitHub before activating auto-merge.
Wait for the Cloudflare Workers Builds check from the Cloudflare GitHub App on the exact Renovate commit. A failed, missing, or skipped build blocks auto-merge.
Preserve the normal contributor and fork preview workflow. The additional job completes immediately for other pull requests after lint finishes.
Verification
Renovate 44.257.3 strict config validation and actionlint passed.
Checked the merge step against success, pending, missing, failed, skipped, wrong-commit, and wrong-provider results.
Summary by CodeRabbit
Chores
Automated dependency updates now target the main branch, use squash merging, and rebase when behind.
Renovate pull requests are checked for successful lint and deployment status before they can merge. Checks wait for the deployment result and fail if it does not succeed within the allotted time.
No actionable comments were generated in the recent review.
Walkthrough
Renovate now targets main and uses configured automerge options. The PR lint workflow adds a Renovate-specific job that checks lint status and polls a Cloudflare check for the PR head SHA.
Changes: Renovate merge validation
Layer / File(s)
Summary
Configure Renovate merges renovate.json
Renovate targets main, enables automerge and platform automerge, uses squash merging, and rebases branches when they are behind the base branch.
The job exits for non-Renovate pull requests. For Renovate pull requests, it rejects cross-repository head branches, requires lint success, and polls the specified Cloudflare check. The job fails if the check concludes with anything other than success or is not found within 30 attempts.
sequenceDiagram
participant Lint as Lint job
participant Gate as renovate-merge-checks job
participant CF as Cloudflare check
Lint->>Gate: Report lint result
Gate->>Gate: Skip checks for non-Renovate pull requests
Gate->>CF: Poll for check on PR head SHA
CF-->>Gate: Return check status and conclusion
Gate->>Gate: Evaluate result and polling limit
Loading
Possibly related PRs
unraid/docs#588: Updates Renovate grouping and version constraints, which share the Renovate configuration and merge gate.
Merge Risk: Minimal · up to b53a8
The change gates Renovate auto-merge on lint and the Cloudflare preview for the exact PR commit, and leaves contributor PRs on their normal path. Before relying on the new gate as the only required check, confirm in the repository settings that lint is still a required check on main; I could not read those settings.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Renovate auto-merge is gated on the Cloudflare preview build. The raw summary confirms a new job that polls for the Cloudflare Workers Builds check on the PR head SHA …
Description check
The description follows the repository's intent but does not use the template. It gives a clear summary, explains how the gate works, and lists verification steps. It omits the template checklist: rel…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: Renovate auto-merge is gated on the Cloudflare preview build. The raw summary confirms a new job that polls for the Cloudflare Workers Builds check on the PR head SHA before allowing merge. The title is specific and matches the changeset, so it passes.
Full details: Description check
Explanation
The description follows the repository's intent but does not use the template. It gives a clear summary, explains how the gate works, and lists verification steps. It omits the template checklist: relative links, lowercase doc file names, assets folder, check for duplicate PRs, and build status. Those items apply to documentation changes, and this PR changes only CI workflow and Renovate config, so most are not relevant. The author does not state that they were considered, though. The description is mostly complete, so the check passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks the branches at dawn While lint and cloud checks carry on Squash the changes, neat and small Rebase when the base moves at all Green checks greet the merge today
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 28cebf7f-962e-454d-9cc6-a11fbf1f3b72
Commits
Reviewing files that changed from the base of the PR and between 5085860 and b53a83b.
Files selected for processing: 2
.github/workflows/pr-lint.yml
renovate.json
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable squash auto-merge for Renovate updates once lint and the Cloudflare preview pass on the current pull request commit.
How it works
Verification
Summary by CodeRabbit
mainbranch, use squash merging, and rebase when behind.