ci: add dependabot auto-merge for minor/patch updates - #34
Conversation
Automatically approves and enables auto-merge on dependabot PRs for semver minor and patch version bumps when CI passes. Major version bumps still require manual review. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new GitHub Actions workflow is added to automatically merge Dependabot minor and patch version updates. The workflow triggers on pull requests created by the Dependabot bot, fetches update metadata, approves qualifying updates, and performs squash merges. Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub
participant Action as Dependabot<br/>Auto-Merge Action
participant API as GitHub API
participant Dependabot as Dependabot
GitHub->>Action: Trigger on pull_request_target<br/>(actor: dependabot[bot])
Action->>API: Fetch Dependabot metadata
API-->>Action: Return update-type
alt update-type is minor or patch
Action->>API: POST approve PR
API-->>Action: Approval confirmed
Action->>API: PUT merge PR (squash)
API-->>Action: PR merged
else update-type is major
Action->>Action: Skip approval & merge
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
| steps: | ||
| - name: Fetch Dependabot metadata | ||
| id: metadata | ||
| uses: dependabot/fetch-metadata@v2 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action or reusable workflow Medium
Automatically approves and auto-merges dependabot PRs for minor/patch semver bumps. Major version bumps still require manual review.
Summary by CodeRabbit