cla.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: Generate CI Bot Token
  18. id: app-token
  19. uses: actions/create-github-app-token@v2
  20. with:
  21. app-id: ${{ secrets.CI_BOT_APP_ID }}
  22. private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
  23. - name: "CLA Assistant"
  24. 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'
  25. uses: contributor-assistant/github-action@v2.4.0
  26. env:
  27. GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
  28. with:
  29. path-to-signatures: 'license/signatures/version1/cla.json'
  30. path-to-document: 'https://github.com/vendurehq/vendure/blob/master/license/CLA.md'
  31. branch: 'master'
  32. allowlist: user1,bot*
  33. # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
  34. #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
  35. #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
  36. #create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
  37. #signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
  38. #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
  39. #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
  40. #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'