From 6973757e477f9d29ebcc31f6a48a8654b232dec2 Mon Sep 17 00:00:00 2001 From: Benson Shen Date: Fri, 6 Mar 2026 16:44:58 -0500 Subject: [PATCH] feat: auto-merge dev-portal-updater-protected bot PRs Enable auto-merge for PRs from dev-portal-updater-protected[bot]. These PRs contain API spec changes already reviewed in api-docs. Ticket: DX-2612 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/auto-merge-bot-prs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/auto-merge-bot-prs.yml diff --git a/.github/workflows/auto-merge-bot-prs.yml b/.github/workflows/auto-merge-bot-prs.yml new file mode 100644 index 0000000..eaf9523 --- /dev/null +++ b/.github/workflows/auto-merge-bot-prs.yml @@ -0,0 +1,19 @@ +name: Auto-merge bot PRs + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + auto-merge: + if: github.actor == 'dev-portal-updater-protected[bot]' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Enable auto-merge + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + run: gh pr merge --auto --merge "$PR_URL"