From 1c9959ccfc020475caf1e632c30149cb30cd9b78 Mon Sep 17 00:00:00 2001 From: Preston Date: Thu, 19 Aug 2021 17:28:39 -0400 Subject: [PATCH] Create autoMergePR.yml --- .github/workflows/autoMergePR.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/autoMergePR.yml diff --git a/.github/workflows/autoMergePR.yml b/.github/workflows/autoMergePR.yml new file mode 100644 index 00000000..971993c4 --- /dev/null +++ b/.github/workflows/autoMergePR.yml @@ -0,0 +1,25 @@ +name: Auto Merge PR + +# Controls when the workflow will run +on: + pull_request_review: # try to merge after review + types: + - submitted + - edited + - dismissed + +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: Auto-Merge Pull Request + # You may pin to the exact commit or the version. + # uses: reitermarkus/automerge@72bc1353d0a084c84034be23424b124d900d1658 + uses: reitermarkus/automerge@v1.5.2 + with: + token: ${{ secrets.PUSH_TOKEN }} + # Specify which merge method to use. By default, will select the first one available in this order: `merge`, `squash`, `rebase` + merge-method: squash