-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec9f0b4
commit a3dded4
Showing
4 changed files
with
38 additions
and
26 deletions.
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,43 +1,52 @@ | ||
# Check CLA (Contributor License Agreement) | ||
|
||
This is a custom GitHub action to be used in the conda GitHub organization | ||
for checking the conda contributor license agreement. | ||
A custom GitHub action to be used in the conda GitHub organization for checking the | ||
conda contributor license agreement. | ||
|
||
## GitHub Action Usage | ||
|
||
In your GitHub repository include the action in your workflows: | ||
|
||
```yaml | ||
name: Contributor license agreement (CLA) | ||
name: Check 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.issue.pull_request | ||
|| github.event_name == 'pull_request_target' | ||
) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check CLA | ||
uses: conda/actions/check-cla | ||
- uses: conda/actions/check-cla | ||
with: | ||
# [required] | ||
# label to add when actor has signed the CLA | ||
label: cla-signed | ||
# A token with ability to comment, label, and modify the commit status | ||
# (`pull_request: write` and `statuses: write`) | ||
# (default: secrets.GITHUB_TOKEN) | ||
token: | ||
# [required] | ||
# Label to apply to contributor's PR once CLA is singed | ||
label: | ||
|
||
# Upstream repository in which to create PR | ||
# (default: conda/infrastructure) | ||
cla_repo: | ||
# Path to the CLA signees file within the provided `cla_repo` | ||
# (default: .clabot) | ||
cla_path: | ||
|
||
# Fork of cla_repo in which to create branch | ||
# (default: conda-bot/infrastructure) | ||
cla_fork: | ||
# [required] | ||
# the GitHub Personal Access Token to comment and label with | ||
token: ${{ secrets.CLA_ACTION_TOKEN }} | ||
# Token for opening singee PR in the provided `cla_repo` | ||
cla_token: | ||
``` |
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
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
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