Skip to content

Commit 8a2f471

Browse files
authored
Add CLA workflow (#53)
1 parent 882eb30 commit 8a2f471

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/cla.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
2+
3+
# Ultralytics Contributor License Agreement (CLA) action https://docs.ultralytics.com/help/CLA
4+
# This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged
5+
6+
name: CLA
7+
on:
8+
issue_comment:
9+
types:
10+
- created
11+
pull_request_target:
12+
types:
13+
- reopened
14+
- opened
15+
- synchronize
16+
17+
permissions:
18+
actions: write
19+
pull-requests: write
20+
21+
jobs:
22+
CLA:
23+
if: github.event_name == 'pull_request_target' || (github.event.issue.pull_request && (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA'))
24+
concurrency:
25+
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: CLA
29+
uses: ultralytics/actions/cla@main
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
cla-token: ${{ secrets._GITHUB_TOKEN }}

0 commit comments

Comments
 (0)