Skip to content

Commit

Permalink
Merge pull request #53 from ImperialCollegeLondon/auto-approve-prs
Browse files Browse the repository at this point in the history
Auto-approve dependabot and pre-commit PRs
  • Loading branch information
cc-a authored Sep 10, 2024
2 parents 59c3a36 + ecd40d3 commit 1c8f41b
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 1c8f41b

Please sign in to comment.