Skip to content

ci(docs): gate Renovate auto-merge on Cloudflare preview - #590

Merged
Eli Bosley (elibosley) merged 1 commit into
mainfrom
codex/docs-renovate-automerge
Nov 21, 2026
Merged

Eli Bosley (elibosley) merged 1 commit into
mainfrom
codex/docs-renovate-automerge

Conversation

@elibosley

@elibosley Eli Bosley (elibosley) commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

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.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.
Validate Renovate pull requests
.github/workflows/pr-lint.yml
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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Sequence Diagram(s)

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

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.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
unraid-docs b53a83b Commit Preview URL

Branch Preview URL
Nov 21 2026, 08:06 AM

@elibosley
Eli Bosley (elibosley) merged commit e940eda into main Nov 21, 2026
4 checks passed
@elibosley
Eli Bosley (elibosley) deleted the codex/docs-renovate-automerge branch November 21, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant