cla.yml 1.1 KB

1234567891011121314151617181920212223242526272829
  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.6.1
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. with:
  23. path-to-signatures: '.github/cla-signatures/cla.json'
  24. path-to-document: 'https://github.com/ayushsharma82/WebSerial/blob/master/CLA.md' # e.g. a CLA or a DCO document
  25. # branch should not be protected
  26. branch: 'dev'
  27. allowlist: ayushsharma82,bot*