-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove CLA from probots.yml and use new GitHub action (#6767)
- Loading branch information
1 parent
8296f43
commit 2afee74
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
enabled: | ||
- cla | ||
- welcome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |