cla.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: "CLA Assistant"
  2. on:
  3. issue_comment:
  4. types: [created]
  5. pull_request_target:
  6. types: [opened, closed, synchronize]
  7. permissions:
  8. actions: write
  9. contents: write
  10. pull-requests: write
  11. statuses: write
  12. jobs:
  13. CLAAssistant:
  14. if: github.repository == 'charmbracelet/crush'
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: "CLA Assistant"
  18. if: |
  19. github.event.comment.body == 'recheck' ||
  20. github.event.comment.body == 'I have read the Contributor License Agreement (CLA) and hereby sign the CLA.' ||
  21. github.event_name == 'pull_request_target'
  22. uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
  25. with:
  26. path-to-signatures: ".github/cla-signatures.json"
  27. path-to-document: "https://github.com/charmbracelet/crush/blob/main/CLA.md"
  28. branch: "main"
  29. allowlist: charmcli,charmcrush,dependabot[bot]
  30. custom-pr-sign-comment: "I have read the Contributor License Agreement (CLA) and hereby sign the CLA."
  31. custom-notsigned-prcomment: "Thank you for your submission. We really appreciate it! Like many open-source projects, we ask that you sign our [Contributor License Agreement](https://github.com/charmbracelet/crush/blob/main/CLA.md) before we can accept your contribution. You can sign the CLA by just posting a Pull Request comment same as the below format."
  32. lock-pullrequest-aftermerge: false
  33. signed-commit-message: "chore(legal): @$contributorName has signed the CLA"