From 1832a7f0107465af728687d79effc8c6ce73a634 Mon Sep 17 00:00:00 2001 From: ShopKlaw <86971981+ShopKlaw@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:15:28 -0400 Subject: [PATCH] Create Contributor License Agreement Workflow --- .github/workflows/cla.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..5fa4908 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,23 @@ +# .github/workflows/cla.yml +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 }}