From 240ecb83a09428d2418b91c7f7d1860a4be9d058 Mon Sep 17 00:00:00 2001 From: Isakdl Date: Tue, 11 Aug 2026 14:10:43 +0200 Subject: [PATCH] ci: Auto-approve CLI reference docs sync PRs Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QHzihjdfEJPSukWj9XXuik --- .github/workflows/auto-approve-docs-sync.yml | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/auto-approve-docs-sync.yml diff --git a/.github/workflows/auto-approve-docs-sync.yml b/.github/workflows/auto-approve-docs-sync.yml new file mode 100644 index 00000000..178d4867 --- /dev/null +++ b/.github/workflows/auto-approve-docs-sync.yml @@ -0,0 +1,25 @@ +name: 'Auto-approve CLI docs sync PRs' + +on: + pull_request_target: + types: + - opened + - reopened + - synchronize + +permissions: + pull-requests: write + +jobs: + auto-approve: + name: Auto-approve + runs-on: ubuntu-latest + if: > + github.event.pull_request.user.login == 'serverpod-cloud-docs-sync[bot]' && + contains(fromJSON('["auto/cli-docs-sync", "auto/framework-cli-docs-sync"]'), github.event.pull_request.head.ref) + steps: + - name: Approve PR + run: gh pr review "$PR_URL" --approve --body 'Auto-approved CLI reference docs sync PR.' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }}