From f765bbb3ab98d898e6ca418a964572aa1fd4245a Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 2 Aug 2021 01:28:01 -0700 Subject: [PATCH] Update pull_request.yml --- .github/workflows/pull_request.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index cfeddf1f..6824d38c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -20,3 +20,14 @@ jobs: npm run coverage env: CI: true + - name: automerge + if: success() + uses: "pascalgn/automerge-action@v0.14.2" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + MERGE_LABELS: "dependencies" + - name: Reject PR + if: failure() + uses: superbrothers/close-pull-request@v3 + with: + comment: "PR closed due to failing tests."