Skip to content

Commit

Permalink
Merge pull request #604 from Shopify/add-cla
Browse files Browse the repository at this point in the history
add CLA GH action
  • Loading branch information
shirmung committed Mar 12, 2024
2 parents 7be8cd0 + 46eebee commit 863e3e1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .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 }}

0 comments on commit 863e3e1

Please sign in to comment.