From 27f6daa602604980a75c2622995acbe2b2d5de2f Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 10 Jul 2026 00:51:22 +0200 Subject: [PATCH] Route CLA concurrency through actionable jobs (#809) --- .github/workflows/cla.yml | 7 +++---- cla/README.md | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 7da16cf..20c1e17 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -4,8 +4,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: @@ -22,11 +20,12 @@ permissions: jobs: CLA: - if: github.repository == 'ultralytics/actions' && (github.event_name != 'issue_comment' || github.event.issue.pull_request) + if: github.repository == 'ultralytics/actions' && (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@main with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/cla/README.md b/cla/README.md index f9c0e27..92dd278 100644 --- a/cla/README.md +++ b/cla/README.md @@ -5,8 +5,6 @@ Checks every pull request commit author against the shared signature ledger in ```yaml name: CLA Assistant -concurrency: - group: cla-${{ github.event.pull_request.number || github.event.issue.number }} on: issue_comment: types: [created] @@ -19,11 +17,12 @@ permissions: jobs: CLA: - if: github.event_name != 'issue_comment' || github.event.issue.pull_request + 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 - 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@main with: github-token: ${{ secrets.GITHUB_TOKEN }}