|
| 1 | +name: "CLA Assistant" |
| 2 | +on: |
| 3 | + pull_request_target: |
| 4 | + types: [opened,closed,synchronize] |
| 5 | + |
| 6 | +# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings |
| 7 | +permissions: |
| 8 | + actions: write |
| 9 | + contents: read # this can be 'read' if the signatures are in remote repository |
| 10 | + pull-requests: write |
| 11 | + statuses: write |
| 12 | + |
| 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 | + # the below token should have repo scope and must be manually added by you in the repository's secret |
| 23 | + # This token is required only if you have configured to store the signatures in a remote repository/organization |
| 24 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} |
| 25 | + with: |
| 26 | + path-to-signatures: 'signatures/version1/cla.json' |
| 27 | + path-to-document: 'https://github.com/nexus-xyz/nexus-zkvm-cla/blob/main/CLA.md' # e.g. a CLA or a DCO document |
| 28 | + # branch should not be protected |
| 29 | + branch: 'main' |
| 30 | + allowlist: sjudson,duc-nx,slumber,evan-schott,bhoberman,michel-nexus,danielmarinq,smart3ll |
| 31 | + |
| 32 | + # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken |
| 33 | + remote-organization-name: 'nexus-xyz' |
| 34 | + remote-repository-name: 'nexus-zkvm-cla' |
| 35 | + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' |
| 36 | + #signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo' |
| 37 | + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' |
| 38 | + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' |
| 39 | + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' |
| 40 | + #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) |
| 41 | + #use-dco-flag: true - If you are using DCO instead of CLA |
0 commit comments