Skip to content

Commit

Permalink
Merge pull request #448 from imperialCHEPI/dependabot-automerge-needs…
Browse files Browse the repository at this point in the history
…-approval

Fix: Bot PRs need approving review before they can be merged
  • Loading branch information
alexdewar authored Jun 20, 2024
2 parents cf26c0f + aa1ebd1 commit 13e9c8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
# GitHub provides this variable in the CI env. You don't
Expand Down

0 comments on commit 13e9c8b

Please sign in to comment.