cla.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. name: CLA Assistant
  3. on:
  4. issue_comment:
  5. types:
  6. - created
  7. pull_request_target:
  8. types:
  9. - reopened
  10. - opened
  11. - synchronize
  12. jobs:
  13. CLA:
  14. if: github.repository == 'ultralytics/ultralytics'
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: CLA Assistant
  18. 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'
  19. uses: contributor-assistant/github-action@v2.3.0
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. # must be repository secret token
  23. PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
  24. with:
  25. path-to-signatures: 'signatures/version1/cla.json'
  26. path-to-document: 'https://docs.ultralytics.com/help/CLA' # CLA document
  27. # branch should not be protected
  28. branch: 'main'
  29. allowlist: dependabot[bot],github-actions,[pre-commit*,pre-commit*,bot*
  30. remote-organization-name: ultralytics
  31. remote-repository-name: cla
  32. custom-pr-sign-comment: 'I have read the CLA Document and I sign the CLA'
  33. custom-allsigned-prcomment: All Contributors have signed the CLA. ✅
  34. #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'