Dependabot Auto-Merge Configuration
This skill automates the setup of Dependabot auto-merge for a GitHub repository. It configures:
- Auto-merge enablement - Allows PRs to be automatically merged when all checks pass
- Squash merge - Enables squash merge strategy for cleaner commit history
- Branch ruleset - Creates a ruleset for the default branch with:
- Deletion protection (prevents accidental branch deletion)
- Non-fast-forward protection (prevents force pushes)
- Optional CI status checks (if specified)
- Workflow files - Generates Dependabot configuration and auto-merge workflow
What You Need
- A GitHub repository with Dependabot enabled
ghCLI installed and authenticated- Write access to the repository
How to Use
Provide the repository name in owner/repo format. Optionally specify CI check names that must pass before auto-merge (e.g., build, test).
Example
Configure Dependabot auto-merge for tsubakimoto/turbo-train with CI checks: build, test
If CI checks are not specified, the ruleset will only enforce deletion and force-push protection.
Output
The skill generates:
- Repository configuration - Auto-merge and squash merge enabled
- Branch ruleset - Protection rules for the default branch
- Workflow file:
.github/workflows/dependabot-auto-merge.yml- Workflow for auto-merging patch/minor updates
Next Steps
After running this skill:
- The auto-merge workflow will be automatically committed and pushed
- Configure your own
.github/dependabot.ymlif needed (to avoid conflicts) - Dependabot will begin creating PRs according to your schedule
- Patch and minor updates will automatically merge once CI checks pass
- Major updates will require manual review