diff --git a/.github/workflows/auto-approve-hotfix.yml b/.github/workflows/auto-approve-hotfix.yml new file mode 100644 index 0000000..423bb4c --- /dev/null +++ b/.github/workflows/auto-approve-hotfix.yml @@ -0,0 +1,15 @@ +name: Auto-Approve Pull Request + +on: + pull_request: + types: [opened] + +jobs: + approve: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'nik13' && contains(github.event.pull_request.head.ref, 'hotfix') + steps: + - name: Auto Approve PR + uses: hmarr/auto-approve-action@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}