diff --git a/.github/mergify.yml b/.github/mergify.yml index 23c78404..4a4854aa 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 00000000..6a55562c --- /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 }}