From 55fb55374e9924819c882ddc8c2c077d70e50d98 Mon Sep 17 00:00:00 2001 From: Yevhenii Huselietov Date: Tue, 26 Jul 2022 09:11:55 -0400 Subject: [PATCH] Remove CLA from probots.yml and use new GitHub action --- .github/probots.yml | 1 - .github/workflows/cla.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/cla.yml diff --git a/.github/probots.yml b/.github/probots.yml index 2167a94..5b47d90 100644 --- a/.github/probots.yml +++ b/.github/probots.yml @@ -1,3 +1,2 @@ enabled: - - cla - welcome diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..9c29c5c --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,22 @@ +name: Contributor License Agreement (CLA) + +on: + pull_request_target: + types: [opened, synchronize, reopened] + issue_comment: + types: [created] + +jobs: + cla: + runs-on: ubuntu-latest + if: | + (github.event.issue.pull_request + && !github.event.issue.pull_request.merged_at + && contains(github.event.comment.body, 'signed') + ) + || (github.event.pull_request && !github.event.pull_request.merged) + steps: + - uses: Shopify/shopify-cla-action@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + cla-token: ${{ secrets.CLA_TOKEN }}