From b49f59dcc8f494b18e91fc0a26243236544aa2c9 Mon Sep 17 00:00:00 2001 From: Ian Breckenridge <62034540+i13e@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:36:16 -0800 Subject: [PATCH] Update dependabot_automerge.yml --- .github/workflows/dependabot_automerge.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dependabot_automerge.yml b/.github/workflows/dependabot_automerge.yml index 68d80b7..7c7c5c1 100644 --- a/.github/workflows/dependabot_automerge.yml +++ b/.github/workflows/dependabot_automerge.yml @@ -1,18 +1,18 @@ -name: Dependabot auto-approve / -merge +name: Auto-approve / -merge for Dependabot and Precommit CI on: pull_request jobs: - dependabot: + auto_merge: permissions: contents: write pull-requests: write runs-on: ubuntu-latest env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - if: ${{ github.actor == 'dependabot[bot]' }} + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'precommit-ci' }} steps: - name: Approve a PR run: gh pr review --approve "$PR_URL" - - name: Enable auto-merge for Dependabot PRs + - name: Enable auto-merge for Dependabot or Precommit CI PRs run: gh pr merge --auto --squash "$PR_URL"