|
| 1 | +name: "CLA Assistant" |
| 2 | +on: |
| 3 | + issue_comment: |
| 4 | + types: [created] |
| 5 | + pull_request_target: |
| 6 | + types: [opened,closed,synchronize,reopened] |
| 7 | + |
| 8 | +# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings |
| 9 | +permissions: |
| 10 | + actions: write |
| 11 | + contents: write |
| 12 | + pull-requests: write |
| 13 | + statuses: write |
| 14 | + |
| 15 | +jobs: |
| 16 | + CLAAssistant: |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - name: "CLA Assistant" |
| 20 | + 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' |
| 21 | + uses: contributor-assistant/github-action@v2.3.2 |
| 22 | + env: |
| 23 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + # the below token should have repo scope and must be manually added by you in the repository's secret |
| 25 | + # This token is required only if you have configured to store the signatures in a remote repository/organization |
| 26 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_TOKEN }} |
| 27 | + with: |
| 28 | + path-to-signatures: '.github/CLA/signatures/version1/cla.json' |
| 29 | + path-to-document: 'https://github.com/rspace-os/.github/blob/d5c5352e61e11e66baec71d0005407811b7f66e5/CLA.md' # e.g. a CLA or a DCO document |
| 30 | + # branch should not be protected |
| 31 | + branch: 'main' |
| 32 | + allowlist: mKowalski256,rlamacraft,rs-nicof,tuxRamon,vaidap,rs-fraser,nebay-abraha,bot* |
| 33 | + |
| 34 | + # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken |
| 35 | + #remote-organization-name: 'rspace-os' |
| 36 | + #remote-repository-name: '.github' |
| 37 | + #create-file-commit-message: 'For example: Creating file for storing CLA Signatures' |
| 38 | + #signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo' |
| 39 | + #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign' |
| 40 | + #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA' |
| 41 | + #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.' |
| 42 | + #lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true) |
| 43 | + #use-dco-flag: true - If you are using DCO instead of CLA |
0 commit comments