From 02f0968b33e5ec134f29b5c60753d4bef99e5f8a Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Sat, 4 Mar 2023 08:07:45 -0600 Subject: [PATCH] chore: automatically approve Ben's docs PRs (#6444) --- .github/workflows/contrib.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contrib.yaml b/.github/workflows/contrib.yaml index 29b23caf54..0d3cae95b0 100644 --- a/.github/workflows/contrib.yaml +++ b/.github/workflows/contrib.yaml @@ -19,7 +19,7 @@ concurrency: pr-${{ github.ref }} jobs: # Dependabot is annoying, but this makes it a bit less so. - auto-approve: + auto-approve-dependabot: runs-on: ubuntu-latest if: github.event_name == 'pull_request_target' permissions: @@ -27,6 +27,19 @@ jobs: steps: - uses: hmarr/auto-approve-action@v3 if: github.actor == 'dependabot[bot]' + auto-approve-docs: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request_target' + permissions: + pull-requests: write + steps: + - name: Get changed files in the docs folder + id: changed-files + uses: tj-actions/changed-files@v35 + with: + files: docs/* + - uses: hmarr/auto-approve-action@v3 + if: github.actor == 'bpmct' && steps.changed-files.outputs.only_changed == 'true' cla: runs-on: ubuntu-latest