-
Notifications
You must be signed in to change notification settings - Fork 2
chore: Add automerge workflow for dependabot PRs #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ecddb96
06de4ef
f21eb2e
55c1650
ad7e428
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,20 @@ | ||||||
| name: Enable automerge on dependabot PRs | ||||||
|
|
||||||
| on: | ||||||
| pull_request_target: | ||||||
| branches: | ||||||
| - main | ||||||
|
|
||||||
| jobs: | ||||||
| automerge: | ||||||
| name: Enable automerge on dependabot PRs | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| if: github.actor == 'dependabot[bot]' | ||||||
|
||||||
| if: github.actor == 'dependabot[bot]' | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' |
Copilot
AI
Mar 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow attempts to enable auto-merge before approving the PR (gh pr merge ... --auto runs before gh pr review --approve). If branch protection requires an approval, the merge command will fail and auto-merge won't be enabled. Swap the order so the approval happens first, then enable auto-merge.
Uh oh!
There was an error while loading. Please reload this page.