From cdd676d9b502ae5b5fc0177e93ec0a295cc79e2c Mon Sep 17 00:00:00 2001 From: Maxwell Date: Sun, 5 Nov 2023 18:58:36 +0200 Subject: [PATCH] chore: add auto-approve.yml --- .github/workflows/auto-approve.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..6af00c3 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,24 @@ +name: auto-approve + +on: + pull_request_target: + types: + - opened + - synchronize + workflow_dispatch: + inputs: + pullRequestNumber: + description: Pull request number to auto-approve + required: false + +jobs: + auto-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.actor == 'renovate[bot]' || github.event_name == 'workflow_dispatch' + steps: + - uses: hmarr/auto-approve-action@v3 + with: + review-message: "Auto approved automated PR" + pull-request-number: ${{ github.event.inputs.pullRequestNumber }} \ No newline at end of file