cla.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. CLAAssistant:
  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. with:
  23. path-to-signatures: 'license/signatures/version1/cla.json'
  24. path-to-document: 'https://github.com/vendure-ecommerce/vendure/blob/master/license/CLA.md'
  25. branch: 'master'
  26. allowlist: user1,bot*
  27. # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
  28. #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
  29. #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
  30. #create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
  31. #signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
  32. #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
  33. #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
  34. #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'