From 7991ff308fe3eb58f998a67324432269467b96f8 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:39:47 +0200 Subject: [PATCH 1/5] Add CLA workflow --- .github/workflows/cla.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..97d50d1 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,31 @@ +# Ultralytics Contributor License Agreement (CLA) action https://docs.ultralytics.com/help/CLA +# This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged + +name: CLA Assistant +concurrency: + group: cla-${{ github.event.pull_request.number || github.event.issue.number }} +on: + issue_comment: + types: + - created + pull_request_target: + types: + - reopened + - opened + - synchronize + +permissions: + actions: write + pull-requests: write + +jobs: + CLA: + if: github.repository == 'ultralytics/replicate' && (github.event_name != 'issue_comment' || github.event.issue.pull_request) + runs-on: ubuntu-latest + steps: + - name: CLA Assistant + 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' + uses: ultralytics/actions/cla@43945a7d2364fc943becb0245a4edcb05e49427f + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + cla-token: ${{ secrets._GITHUB_TOKEN }} From 44de40d82455754f8875092b825a49f4d11f43e7 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:56:19 +0200 Subject: [PATCH 2/5] Use shared CLA action from main --- .github/workflows/cla.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 97d50d1..f708840 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -2,8 +2,6 @@ # This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged name: CLA Assistant -concurrency: - group: cla-${{ github.event.pull_request.number || github.event.issue.number }} on: issue_comment: types: @@ -20,12 +18,13 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/replicate' && (github.event_name != 'issue_comment' || github.event.issue.pull_request) + if: github.repository == 'ultralytics/replicate' && (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'))) + concurrency: + group: cla-${{ github.event.pull_request.number || github.event.issue.number }} runs-on: ubuntu-latest steps: - name: CLA Assistant - 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' - uses: ultralytics/actions/cla@43945a7d2364fc943becb0245a4edcb05e49427f + uses: ultralytics/actions/cla@main with: github-token: ${{ secrets.GITHUB_TOKEN }} cla-token: ${{ secrets._GITHUB_TOKEN }} From 2eccc813885f4de80e72903fb0c795a151022f8d Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:58:21 +0200 Subject: [PATCH 3/5] Add public workflow license header --- .github/workflows/cla.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index f708840..083a615 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,3 +1,5 @@ +# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license + # Ultralytics Contributor License Agreement (CLA) action https://docs.ultralytics.com/help/CLA # This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged From 21aa6f0a02193d7170d6e1f5d9fb5ca219f43118 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:07:40 +0200 Subject: [PATCH 4/5] Rename CLA workflow --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 083a615..c482c5a 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -3,7 +3,7 @@ # Ultralytics Contributor License Agreement (CLA) action https://docs.ultralytics.com/help/CLA # This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged -name: CLA Assistant +name: CLA on: issue_comment: types: From 7362aeb2c561546c4d36c255b6fd2f41fb9d8ef5 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:30:42 +0200 Subject: [PATCH 5/5] Use canonical CLA workflow --- .github/workflows/cla.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index c482c5a..53d4581 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -20,12 +20,12 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/replicate' && (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'))) + 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')) concurrency: group: cla-${{ github.event.pull_request.number || github.event.issue.number }} runs-on: ubuntu-latest steps: - - name: CLA Assistant + - name: CLA uses: ultralytics/actions/cla@main with: github-token: ${{ secrets.GITHUB_TOKEN }}