Skip to content

Commit 863e3e1

Browse files
authored
Merge pull request #604 from Shopify/add-cla
add CLA GH action
2 parents 7be8cd0 + 46eebee commit 863e3e1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/cla.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .github/workflows/cla.yml
2+
name: Contributor License Agreement (CLA)
3+
4+
on:
5+
pull_request_target:
6+
types: [opened, synchronize]
7+
issue_comment:
8+
types: [created]
9+
10+
jobs:
11+
cla:
12+
runs-on: ubuntu-latest
13+
if: |
14+
(github.event.issue.pull_request
15+
&& !github.event.issue.pull_request.merged_at
16+
&& contains(github.event.comment.body, 'signed')
17+
)
18+
|| (github.event.pull_request && !github.event.pull_request.merged)
19+
steps:
20+
- uses: Shopify/shopify-cla-action@v1
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
cla-token: ${{ secrets.CLA_TOKEN }}

0 commit comments

Comments
 (0)