cla.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 2020 SAP SE
  2. # Modifications Copyright Materialize, Inc. and contributors. All rights reserved.
  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. # Portions of this file are derived from the README examples in the
  16. # Contributor Assistant project. The original source code was retrieved on
  17. # July 31, 2024 from:
  18. #
  19. # https://github.com/contributor-assistant/github-action/blob/master/README.md
  20. # Check if PR authors have signed the Materialize CLA, and if not have them sign
  21. # and record their signature. The CLA and signatures are stored in
  22. # https://github.com/MaterializeInc/cla
  23. name: CLA Assistant
  24. on:
  25. issue_comment:
  26. types: [created]
  27. pull_request_target:
  28. types: [opened, closed, synchronize]
  29. permissions:
  30. actions: write
  31. contents: read
  32. pull-requests: write
  33. statuses: write
  34. jobs:
  35. cla-assistant:
  36. runs-on: ubuntu-latest
  37. steps:
  38. - name: CLA Assistant
  39. 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'
  40. uses: contributor-assistant/github-action@v2.4.0
  41. env:
  42. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  43. PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_TOKEN }}
  44. with:
  45. remote-organization-name: MaterializeInc
  46. remote-repository-name: cla
  47. branch: main
  48. path-to-signatures: signatures.v1.json
  49. path-to-document: https://github.com/MaterializeInc/cla/blob/main/cla.md
  50. allowlist: materialize-bot,materialize-bot-monitoring,dependabot[bot]
  51. custom-notsigned-prcomment: Thank you for your submission! We really appreciate it. Like many source-available projects, we require that you sign our [Contributor License Agreement](https://github.com/MaterializeInc/cla/blob/main/cla.md) (CLA) before we can accept your contribution.<br><br>You can sign the CLA by posting a comment with the message below.
  52. custom-pr-sign-comment: I have read the Contributor License Agreement (CLA) and I hereby sign the CLA.
  53. custom-allsigned-prcomment: All contributors have signed the CLA.
  54. lock-pullrequest-aftermerge: false