Skip to content

Add Dependabot auto-merge workflow#139

Merged
keysersoft merged 1 commit into
mainfrom
keysersoft/dependabot-automerge
May 10, 2026
Merged

Add Dependabot auto-merge workflow#139
keysersoft merged 1 commit into
mainfrom
keysersoft/dependabot-automerge

Conversation

@keysersoft
Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/dependabot-auto-merge.yml that auto-approves and enables --auto merge on Dependabot PRs that are patch or minor in the npm or github-actions ecosystems.
  • Higher-risk bumps (majors, Docker base images like node 22→25, deploy-action majors) are labelled needs-review with an explanatory comment and left for a human.
  • Repo-level settings already updated separately: allow_auto_merge=true, delete_branch_on_merge=true.

Safety model

  • Uses gh pr merge --auto, so the merge fires only after required CI checks pass.
  • Recommended follow-up: enable branch protection on main with the existing CI jobs (Backend, Frontend) marked as required. Without it, --auto still waits for CI but does not enforce reviews.
  • The 16 currently-open Dependabot PRs are not touched until a new event fires; they can be triggered manually via gh pr update-branch or by closing/reopening.

Test plan

Auto-merges low-risk Dependabot PRs (npm and github-actions, patch+minor
only) once required CI checks pass via 'gh pr merge --auto'. Higher-risk
bumps (majors, Docker base images, GitHub Action majors) are labelled
'needs-review' and left for human review.

Also enabled allow_auto_merge and delete_branch_on_merge at the repo
level so the --auto flag and post-merge branch cleanup actually work.

Note: for full safety, branch protection should be configured on main
with the CI jobs marked as required. Without it --auto still merges
once CI is green but does not enforce review requirements.
@keysersoft keysersoft merged commit 1dffbf0 into main May 10, 2026
6 checks passed
@keysersoft keysersoft deleted the keysersoft/dependabot-automerge branch May 10, 2026 08:29
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