auto-enable-auto-merge.yml

 1name: Auto-enable Auto-merge
 2on:
 3  pull_request_target:
 4    types: [opened, synchronize, reopened, ready_for_review]
 5  pull_request:
 6    types: [opened, synchronize, reopened, ready_for_review]
 7
 8permissions:
 9  pull-requests: write
10  contents: write
11
12jobs:
13  enable-auto-merge:
14    runs-on: ubuntu-latest
15    steps:
16      - name: Enable Auto-Merge
17        env:
18          GH_TOKEN: ${{ github.token }}
19
20        run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}"