From 97ee3bae41671739f1cbbdac1372414396b461ce Mon Sep 17 00:00:00 2001 From: Yevhenii Huselietov Date: Sat, 16 Jul 2022 13:10:06 -0400 Subject: [PATCH] Remove CLA from probot and use new GitHub action --- .github/probots.yml | 3 --- .github/workflows/cla.yml | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) delete mode 100644 .github/probots.yml create mode 100644 .github/workflows/cla.yml diff --git a/.github/probots.yml b/.github/probots.yml deleted file mode 100644 index 3b64614a..00000000 --- a/.github/probots.yml +++ /dev/null @@ -1,3 +0,0 @@ -# .github/probots.yml -enabled: - - cla \ No newline at end of file diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 00000000..ecd71ce2 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,22 @@ +name: Contributor License Agreement (CLA) + +on: + pull_request_target: + types: [opened, synchronize] + 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 }}