|
| 1 | +name: "CLA Assistant" |
| 2 | +on: |
| 3 | + issue_comment: |
| 4 | + types: [created] |
| 5 | + pull_request_target: |
| 6 | + types: [opened,closed,synchronize] |
| 7 | +jobs: |
| 8 | + CLAssistant: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: "CLA Assistant" |
| 12 | + 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' |
| 13 | + uses: contributor-assistant/[email protected] |
| 14 | + env: |
| 15 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 16 | + # the below token should have repo scope and must be manually added by you in the repository's secret |
| 17 | + PERSONAL_ACCESS_TOKEN : ${{ secrets.DEPLOY_ACCESS_TOKEN }} |
| 18 | + with: |
| 19 | + path-to-document: 'https://github.com/kcl-lang/.github/blob/main/CLA.md' # e.g. a CLA or a DCO document |
| 20 | + |
| 21 | + # branch should not be protected |
| 22 | + lock-pullrequest-aftermerge: True |
| 23 | + path-to-signatures: 'signatures/version1/cla.json' |
| 24 | + remote-organization-name: kcl-lang |
| 25 | + remote-repository-name: cla.db |
| 26 | + branch: 'main' |
| 27 | + allowlist: bot* |
| 28 | + |
| 29 | + #below are the optional inputs - If the optional inputs are not given, then default values will be taken |
| 30 | + #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository) |
| 31 | + #remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository) |
| 32 | + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' |
| 33 | + #signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo' |
| 34 | + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' |
| 35 | + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' |
| 36 | + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' |
| 37 | + #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) |
| 38 | + #use-dco-flag: true - If you are using DCO instead of CLA |
0 commit comments