From 3f90a25f50d3664726a94071d0b82c3c76cf2e4f Mon Sep 17 00:00:00 2001 From: Nicholas Boll Date: Wed, 22 Sep 2021 12:03:04 -0600 Subject: [PATCH] ci: Add automerge job [skip ci] --- .github/workflows/enable-automerge.yml | 16 ++++++++++++++++ .github/workflows/new_issue.yml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/enable-automerge.yml diff --git a/.github/workflows/enable-automerge.yml b/.github/workflows/enable-automerge.yml new file mode 100644 index 0000000000..bdce1a2608 --- /dev/null +++ b/.github/workflows/enable-automerge.yml @@ -0,0 +1,16 @@ +name: Enable Automerge + +on: + pull_request_target: + types: [ edited, labeled ] + +jobs: + main: + if: contains(github.event.pull_request.labels.*.name, 'automerge') + runs-on: ubuntu-latest + + steps: + - name: Enable Automerge + uses: Workday/canvas-kit-actions/enable-automerge@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/new_issue.yml b/.github/workflows/new_issue.yml index c24d120feb..d812b1e0b3 100644 --- a/.github/workflows/new_issue.yml +++ b/.github/workflows/new_issue.yml @@ -12,4 +12,4 @@ jobs: with: project: Backlog column: Open - repo-token: ${{ secrets.GH_RW_TOKEN }} + repo-token: ${{ secrets.GITHUB_TOKEN }}