Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #274 from Shopify/replace-cla-probot-with-action
Browse files Browse the repository at this point in the history
Migrate off probot-CLA to new GitHub Action
  • Loading branch information
Yevhenii Huselietov authored Jul 29, 2022
2 parents d5e3c81 + 1e7106b commit 3fb9199
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/probots.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
enabled:
- cla
- stale-flagger
22 changes: 22 additions & 0 deletions .github/workflows/cla.yml
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 }}

0 comments on commit 3fb9199

Please sign in to comment.