Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cla action. #549

Merged
merged 2 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ group:
# lock issues
- source: .github/workflows/lock.yml
dest: .github/workflows/lock.yml
# CLA check
- source: .github/workflows/cla.yml
dest: .github/workflows/cla.yml
# epic issue form
- source: .github/ISSUE_TEMPLATE/epic.yml
dest: .github/ISSUE_TEMPLATE/epic.yml
31 changes: 31 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CLA

on:
issue_comment:
types:
- created
pull_request_target:
types:
- reopened
- opened
- synchronize

jobs:
check:
if: >-
!github.event.repository.fork
&& (
github.event.comment.body == '@conda-bot check'
|| github.event_name == 'pull_request_target'
)
runs-on: ubuntu-latest
steps:
- name: Check CLA
uses: conda/actions/check-cla@v22.5.0
with:
# [required]
# label to add when actor has signed the CLA
label: cla-signed
# [required]
# the GitHub Personal Access Token to comment and label with
token: "${{ secrets.CLA_ACTION_TOKEN }}"