diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..fa5a5d1 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,21 @@ +name: Auto Approve +on: + pull_request: + types: + - opened + - reopened + - synchronize + - ready_for_review +jobs: + approve: + if: | + github.event.pull_request.user.login == github.repository_owner + && ! github.event.pull_request.draft + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: hmarr/auto-approve-action@v4 + with: + review-message: "Auto approved automated PR" + github-token: ${{ secrets.BOT_TOKEN }} \ No newline at end of file