From d410667c6d4ccb081b69af661d96bcef9fb499ce Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 18 Feb 2026 13:57:48 -0600 Subject: [PATCH] auto approve docs --- .github/workflows/auto-merge-docs.yaml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/auto-merge-docs.yaml diff --git a/.github/workflows/auto-merge-docs.yaml b/.github/workflows/auto-merge-docs.yaml new file mode 100644 index 00000000..26b4542e --- /dev/null +++ b/.github/workflows/auto-merge-docs.yaml @@ -0,0 +1,27 @@ +name: Auto-merge Docs PRs + +on: + pull_request: + types: [opened, synchronize] + branches: + - main + +jobs: + auto-merge: + if: github.event.pull_request.head.ref == 'docs-update' && github.event.pull_request.user.login == 'github-actions[bot]' + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + steps: + - name: Auto-approve PR + run: gh pr review "$PR_NUMBER" --approve + env: + PR_NUMBER: ${{ github.event.pull_request.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Enable auto-merge + run: gh pr merge "$PR_NUMBER" --squash --auto + env: + PR_NUMBER: ${{ github.event.pull_request.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}