From c03583c09b45ce7db560e13a2a6dae394a45542c Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 23 Feb 2022 10:56:59 +0100 Subject: [PATCH] Use jacogr/action-approve (#1163) --- .github/mergify.yml | 9 --------- .github/workflows/approve.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/approve.yml diff --git a/.github/mergify.yml b/.github/mergify.yml index 23c78404f..4a4854aa4 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -23,12 +23,3 @@ pull_request_rules: queue: name: default method: squash - - - name: auto approval - conditions: - - author~=^jacogr$ - - label=automerge - actions: - review: - type: APPROVE - message: This auto-approval rule should be removed once more JS maintainers are active. diff --git a/.github/workflows/approve.yml b/.github/workflows/approve.yml new file mode 100644 index 000000000..6a55562cb --- /dev/null +++ b/.github/workflows/approve.yml @@ -0,0 +1,14 @@ +name: PR + +on: pull_request + +jobs: + auto-approve: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: jacogr/action-approve@master + with: + authors: jacogr + labels: automerge + token: ${{ secrets.GH_PAT_BOT }}