Skip to content

fix(renovate): self-merge instead of relying on GitHub native auto-merge - #45

Merged
JSisques merged 1 commit into
mainfrom
claude/renovate-auto-merge-workflows-uety30
Jul 28, 2026
Merged

fix(renovate): self-merge instead of relying on GitHub native auto-merge#45
JSisques merged 1 commit into
mainfrom
claude/renovate-auto-merge-workflows-uety30

Conversation

@JSisques

Copy link
Copy Markdown
Contributor

Summary

  • Set platformAutomerge: false in the shared Renovate preset. Renovate now merges eligible PRs itself via the API once all checks pass, instead of asking GitHub's native auto-merge queue to do it.
  • Root cause: GitHub's native auto-merge only works when Settings → General → Allow auto-merge is enabled on the target repo. Testing against open Renovate PRs showed this was off on gardenia-api (confirmed via the enable_pr_auto_merge API returning "Auto-merge is not enabled for this repository"), so fully green Renovate PRs (e.g. lint-staged update, all 9 checks passing) sat unmerged indefinitely with no visible error. nestjs-template had the setting on and merged fine, which made the inconsistency easy to miss.
  • Updated the README to explain the tradeoff and how to switch back to platformAutomerge: true per-repo if the native queue (better branch-protection integration) is preferred once the setting is confirmed enabled everywhere.

Test plan

  • Validated default.json is well-formed JSON (python3 -m json.tool)
  • Confirm an already-green, currently-stuck Renovate PR in gardenia-api (e.g. #429) gets merged by Renovate on its next run without needing the repo setting change
  • Confirm major-update PRs still do not automerge

Generated by Claude Code

platformAutomerge required "Allow auto-merge" enabled per-repo in
GitHub settings, which several consuming repos didn't have — Renovate
PRs sat fully green and unmerged with no visible error. Renovate
merging via its own API call once checks pass has no such
prerequisite.
@JSisques
JSisques merged commit f61d974 into main Jul 28, 2026
2 checks passed
@JSisques
JSisques deleted the claude/renovate-auto-merge-workflows-uety30 branch July 28, 2026 12:37
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.

2 participants