diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..53d4581 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,32 @@ +# 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 +on: + issue_comment: + types: + - created + pull_request_target: + types: + - reopened + - opened + - synchronize + +permissions: + actions: write + pull-requests: write + +jobs: + 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 + uses: ultralytics/actions/cla@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + cla-token: ${{ secrets._GITHUB_TOKEN }}