cla.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright 2024 Apollo Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. name: "CLA Assistant"
  17. on:
  18. issue_comment:
  19. types: [created]
  20. pull_request_target:
  21. types: [opened,closed,synchronize]
  22. jobs:
  23. CLAssistant:
  24. runs-on: ubuntu-latest
  25. steps:
  26. - name: "CLA Assistant"
  27. if: (github.event.comment.body == 'recheck' || startsWith(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA')) || github.event_name == 'pull_request_target'
  28. # Beta Release
  29. uses: cla-assistant/github-action@v2.1.2-beta
  30. env:
  31. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  32. # the below token should have repo scope and must be manually added by you in the repository's secret
  33. PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_CLA_ASSISTANT }}
  34. with:
  35. path-to-signatures: 'signatures/version1/cla.json'
  36. path-to-document: 'https://github.com/apolloconfig/apollo-community/blob/master/CLA.md' # e.g. a CLA or a DCO document
  37. # branch should not be protected
  38. branch: 'master'
  39. allowlist: dependabot,bot*,github-actions
  40. remote-repository-name: apollo-community
  41. #below are the optional inputs - If the optional inputs are not given, then default values will be taken
  42. #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
  43. #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
  44. #create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
  45. #signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
  46. #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
  47. #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
  48. #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
  49. #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
  50. #use-dco-flag: true - If you are using DCO instead of CLA