fix(ci): repair Dependabot auto-merge workflow - #100
Conversation
The auto-merge workflow never landed any Dependabot PR for two reasons: 1. The 'Rebase onto master' step posted '@dependabot rebase' via GITHUB_TOKEN, which Dependabot rejects with 'only users with push access can use that command'. Removed the step entirely — it is unnecessary because 'gh pr merge --auto' queues the merge and Dependabot rebases its own PRs automatically. 2. 'gh pr merge --auto' failed with 'Auto merge is not allowed for this repository' because the repo-level 'Allow auto-merge' setting was disabled. That setting has now been enabled (repo settings change). Together these caused every minor/patch Dependabot PR to stall in a BLOCKED state, exhausting the open-PR limits in dependabot.yml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe GitHub Actions auto-merge workflow is simplified by documenting the removal of a ChangesGitHub Actions Auto-Merge Workflow
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Summary
The
Auto-merge Dependabotworkflow has never successfully merged a PR. Every minor/patch Dependabot PR (#94, #95, #97, #98) stalled in aBLOCKEDstate, exhausting theopen-pull-requests-limitindependabot.ymland risking missed security updates.Two distinct root causes, both confirmed in the #97 run log:
gh pr comment --body "@dependabot rebase"is posted viaGITHUB_TOKEN, which Dependabot rejects: "Sorry, only users with push access can use that command." Removed the step; it is unnecessary (gh pr merge --autoqueues the merge and Dependabot self-rebases).gh pr merge --autofailed with "GraphQL: Auto merge is not allowed for this repository." The repo-level Allow auto-merge setting has been enabled (allow_auto_merge=true).Test plan
auto-mergejob goes green instead of failing.Follow-ups (not in this PR)
delete_branch_on_mergeto auto-clean merged Dependabot branches.🤖 Generated with Claude Code
Summary by CodeRabbit