From 2a016e80d5311cf7cb832c683f25e23c1a70fc63 Mon Sep 17 00:00:00 2001 From: Christopher Granade Date: Thu, 25 Jun 2020 15:40:43 -0700 Subject: [PATCH] Port automerge functionality from quantumlibraries. --- .github/workflows/automerge.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/automerge.yml diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 00000000000..d45a296b737 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,38 @@ +# This action allows using the automerge label to automatically merge in pull requests that have been reviewed and that pass +# status checks (similar to the autocomplete functionality of Azure DevOps). +name: automerge +on: + pull_request: + # Note that we only support automerge on branches that have required checks. + branches: + - master + - feature/* + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + # Note that we only support automerge on branches that have required checks. + branches: + - master + - feature/* + types: + - submitted + check_suite: + types: + - completed + status: {} +jobs: + automerge: + runs-on: ubuntu-latest + steps: + - name: automerge + uses: "pascalgn/automerge-action@4536e8847eb62fe2f0ee52c8fa92d17aa97f932f" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + MERGE_METHOD: squash