From ba536eec69e10ec7609b3d5625c9d5020faff749 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:39:56 +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..4dfb3c0 --- /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/pre-commit' && (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 e631a45c554f4faf0041a8d11944903af863a158 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:55:51 +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 4dfb3c0..01da719 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/pre-commit' && (github.event_name != 'issue_comment' || github.event.issue.pull_request) + if: github.repository == 'ultralytics/pre-commit' && (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 24fe9ba21db42df53dd600c4d8d042ca8e145b4b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:57:54 +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 01da719..5c15c74 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 c348ab1dcfe507b2a899c69b48c5ace7e89bcf13 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:07:13 +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 5c15c74..97a5850 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 b54187c500d7bc9870e1cdc2fc1aca2cac01d7e0 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:30:14 +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 97a5850..53d4581 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -20,12 +20,12 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/pre-commit' && (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 }}