|
| 1 | +name: "CLA Assistant" |
| 2 | +on: |
| 3 | + issue_comment: |
| 4 | + types: [created] |
| 5 | + pull_request_target: |
| 6 | + types: [opened, closed, synchronize] |
| 7 | + |
| 8 | +jobs: |
| 9 | + ContributorLicenseAgreement: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - name: "CLA Assistant" |
| 13 | + 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' |
| 14 | + # Alpha Release |
| 15 | + uses: cla-assistant/github-action@v2.1.1-beta |
| 16 | + env: |
| 17 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 18 | + # the below token should have repo scope and must be manually added by you in the repository's secret |
| 19 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }} |
| 20 | + with: |
| 21 | + path-to-signatures: "signatures/version1/cla.json" |
| 22 | + path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CLA.md" # e.g. a CLA or a DCO document |
| 23 | + # branch should not be protected |
| 24 | + branch: "main" |
| 25 | + allowlist: dependabot |
| 26 | + #below are the optional inputs - If the optional inputs are not given, then default values will be taken |
| 27 | + remote-organization-name: splunk |
| 28 | + remote-repository-name: cla-agreement |
| 29 | + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' |
| 30 | + #signed-commit-messag e: 'For example: $contributorName has signed the CLA in #$pullRequestNo' |
| 31 | + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' |
| 32 | + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' |
| 33 | + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' |
| 34 | + CodeOfConduct: |
| 35 | + runs-on: ubuntu-latest |
| 36 | + steps: |
| 37 | + - name: "COC Assistant" |
| 38 | + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the Code of Conduct and I hereby accept the Terms') || github.event_name == 'pull_request_target' |
| 39 | + # Alpha Release |
| 40 | + uses: cla-assistant/github-action@v2.1.1-beta |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 43 | + # the below token should have repo scope and must be manually added by you in the repository's secret |
| 44 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_CLATOOL }} |
| 45 | + with: |
| 46 | + path-to-signatures: "signatures/version1/coc.json" |
| 47 | + path-to-document: "https://github.com/splunk/cla-agreement/blob/main/CODE_OF_CONDUCT.md" # e.g. a COC or a DCO document |
| 48 | + # branch should not be protected |
| 49 | + branch: "main" |
| 50 | + allowlist: dependabot |
| 51 | + #below are the optional inputs - If the optional inputs are not given, then default values will be taken |
| 52 | + remote-organization-name: splunk |
| 53 | + remote-repository-name: cla-agreement |
| 54 | + custom-pr-sign-comment: "I have read the Code of Conduct and I hereby accept the Terms" |
| 55 | + create-file-commit-message: "For example: Creating file for storing COC Signatures" |
| 56 | + signed-commit-message: "$contributorName has signed the COC in #$pullRequestNo" |
| 57 | + custom-notsigned-prcomment: "All contributors have NOT signed the COC Document" |
| 58 | + custom-allsigned-prcomment: "****CLA Assistant Lite bot**** All contributors have signed the COC ✍️ ✅" |
0 commit comments