From 3697565ab220b2cdb3ca4ab9bf71f02b33f3d9c5 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:39:47 +0200 Subject: [PATCH 1/4] 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..3b25862 --- /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/mkdocs' && (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 1df2cf7faea49d845a9cb94224e7301e46a70676 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:59:35 +0200 Subject: [PATCH 2/4] Add public workflow license header --- .github/workflows/cla.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 3b25862..d3b8891 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,9 +1,9 @@ +# 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 name: CLA Assistant -concurrency: - group: cla-${{ github.event.pull_request.number || github.event.issue.number }} on: issue_comment: types: @@ -20,12 +20,13 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/mkdocs' && (github.event_name != 'issue_comment' || github.event.issue.pull_request) + if: github.repository == 'ultralytics/mkdocs' && (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 d4e44e2b336f2e6f6cfd0ed1c3bef63f8a031df5 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:08:57 +0200 Subject: [PATCH 3/4] 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 d3b8891..0028d81 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 c048d25e048f7b4d59c761632ef3cd44705851e9 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 01:31:58 +0200 Subject: [PATCH 4/4] 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 0028d81..53d4581 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -20,12 +20,12 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/mkdocs' && (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 }}