From d71d3a8b4fe7a5a9a988d55360b72e0777248479 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Wed, 9 Sep 2026 10:57:54 -0700 Subject: [PATCH] ci: auto merge version bumps --- .github/workflows/watch.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/watch.yml b/.github/workflows/watch.yml index d57847b..3776a07 100644 --- a/.github/workflows/watch.yml +++ b/.github/workflows/watch.yml @@ -30,6 +30,7 @@ jobs: python version.py --set ${{ env.PYRIGHT_VERSION }} - name: Create Pull Request + id: create-pr if: ${{ env.PYRIGHT_OUT_OF_DATE == '1' }} uses: peter-evans/create-pull-request@v3 env: @@ -48,3 +49,10 @@ jobs: labels: | automated pr draft: false + + - name: Enable auto-merge + if: ${{ env.PYRIGHT_OUT_OF_DATE == '1' && steps.create-pr.outputs.pull-request-number }} + env: + GH_TOKEN: ${{ secrets.REPO_TOKEN }} + run: | + gh pr merge --auto --squash "${{ steps.create-pr.outputs.pull-request-number }}"