cla-assistant.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: CLA Assistant
  2. on:
  3. issue_comment:
  4. types: [created]
  5. pull_request_target:
  6. types: [opened,closed,synchronize]
  7. # explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
  8. permissions:
  9. actions: write
  10. contents: write # this can be 'read' if the signatures are in remote repository
  11. pull-requests: write
  12. statuses: write
  13. jobs:
  14. CLA-Assistant:
  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 hereby sign the CLA') || github.event_name == 'pull_request_target'
  19. uses: contributor-assistant/github-action@v2.4.0
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. PERSONAL_ACCESS_TOKEN: ${{ secrets.BOT_TOKEN }}
  23. with:
  24. path-to-signatures: 'signatures/cla.json'
  25. path-to-document: 'https://github.com/OpenIM-Robot/cla/blob/main/README.md' # e.g. a CLA or a DCO document
  26. branch: 'main'
  27. allowlist: 'bot*,*bot,OpenIM-Robot'
  28. # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
  29. remote-organization-name: OpenIM-Robot
  30. remote-repository-name: cla
  31. create-file-commit-message: 'Creating file for storing CLA Signatures'
  32. # signed-commit-message: '$contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
  33. custom-notsigned-prcomment: '💕 Thank you for your contribution and please kindly read and sign our CLA. [CLA Docs](https://github.com/OpenIM-Robot/cla/blob/main/README.md)'
  34. custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
  35. custom-allsigned-prcomment: '🤖 All Contributors have signed the [CLA](https://github.com/OpenIM-Robot/cla/blob/main/README.md).<br> The signed information is recorded [**here**](https://github.com/OpenIM-Robot/cla/blob/main/signatures/cla.json)'
  36. #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
  37. #use-dco-flag: true - If you are using DCO instead of CLA