Skip to content

Commit

Permalink
Migrate off probot-CLA to new GitHub Action (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
cursedcoder authored Jul 27, 2022
1 parent 74e87ef commit 96bdab1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/probots.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Contributor License Agreement (CLA)

on:
pull_request_target:
types: [opened, synchronize]
issue_comment:
types: [created]

permissions:
pull-requests: write # to set the label
actions: write # to re-run the workflow when a comment is received

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 96bdab1

Please sign in to comment.