Add Dependabot auto-merge workflow#139
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/dependabot-auto-merge.ymlthat auto-approves and enables--automerge on Dependabot PRs that are patch or minor in the npm or github-actions ecosystems.needs-reviewwith an explanatory comment and left for a human.allow_auto_merge=true,delete_branch_on_merge=true.Safety model
gh pr merge --auto, so the merge fires only after required CI checks pass.mainwith the existing CI jobs (Backend, Frontend) marked as required. Without it,--autostill waits for CI but does not enforce reviews.gh pr update-branchor by closing/reopening.Test plan
needs-reviewlabel and the explanatory comment instead.