Skip to content

Commit 528df63

Browse files
authored
Replace third-party CLA action (#2444)
* Replace third-party CLA action * Use shared CLA action from main * Rename CLA workflow * Use canonical CLA workflow
1 parent a5fce39 commit 528df63

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/cla.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Ultralytics Contributor License Agreement (CLA) action https://docs.ultralytics.com/help/CLA
44
# This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged
55

6-
name: CLA Assistant
6+
name: CLA
77
on:
88
issue_comment:
99
types:
@@ -16,30 +16,17 @@ on:
1616

1717
permissions:
1818
actions: write
19-
contents: write
2019
pull-requests: write
21-
statuses: write
2220

2321
jobs:
2422
CLA:
25-
if: github.repository == 'ultralytics/yolov3'
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 }}
2626
runs-on: ubuntu-latest
2727
steps:
28-
- name: CLA Assistant
29-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA') || github.event_name == 'pull_request_target'
30-
uses: contributor-assistant/github-action@v2.6.1
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
# Must be repository secret PAT
34-
PERSONAL_ACCESS_TOKEN: ${{ secrets._GITHUB_TOKEN }}
28+
- name: CLA
29+
uses: ultralytics/actions/cla@main
3530
with:
36-
path-to-signatures: "signatures/version1/cla.json"
37-
path-to-document: "https://docs.ultralytics.com/help/CLA" # CLA document
38-
# Branch must not be protected
39-
branch: cla-signatures
40-
allowlist: dependabot[bot],github-actions,pre-commit*,bot*
41-
42-
remote-organization-name: ultralytics
43-
remote-repository-name: cla
44-
custom-pr-sign-comment: "I have read the CLA Document and I sign the CLA"
45-
custom-allsigned-prcomment: All Contributors have signed the CLA. ✅
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
cla-token: ${{ secrets._GITHUB_TOKEN }}

0 commit comments

Comments
 (0)