From f6adf9945396487534dd87a866c3736514690ff0 Mon Sep 17 00:00:00 2001 From: Nikhil Pareek Date: Thu, 28 Nov 2024 23:29:05 +0530 Subject: [PATCH] [feat] allow hotfix --- .github/workflows/auto-approve-hotfix.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/auto-approve-hotfix.yml 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 }}