ci: approve dependabot PRs so auto-merge can go through - #171
Merged
Conversation
The ruleset on `main` requires one approving review. The auto-merge workflow only enabled auto-merge, so every dependabot PR sat there waiting for a review that never came and I ended up approving them by hand anyway. - Approve the PR with `gh pr review --approve` before enabling auto-merge - Move the job into `checks.yml` and gate it on `needs: [checks]`, so the approval only happens once the build is green - Drop `dependabot-auto-merge.yml` Major bumps stay excluded, and the actor check stays on `github.event.pull_request.user.login` instead of `github.actor` so re-running the workflow myself doesn't turn auto-merge off. This relies on "Allow GitHub Actions to create and approve pull requests", which is already enabled on the repo.
Hofer-Julian
marked this pull request as ready for review
August 25, 2026 07:43
ruben-arts
enabled auto-merge (squash)
August 25, 2026 12:06
ruben-arts
approved these changes
Aug 25, 2026
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.
The ruleset on
mainrequires one approving review. The auto-merge workflow only enabled auto-merge, so every dependabot PR sat there waiting for a review that never came and I ended up approving them by hand anyway.gh pr review --approvebefore enabling auto-mergechecks.ymland gate it onneeds: [checks], so the approval only happens once the build is greendependabot-auto-merge.ymlMajor bumps stay excluded, and the actor check stays on
github.event.pull_request.user.logininstead ofgithub.actorso re-running the workflow myself doesn't turn auto-merge off.This relies on "Allow GitHub Actions to create and approve pull requests", which is already enabled on the repo.