| 1 | name: "CLA Assistant" |
| 2 | on: |
| 3 | issue_comment: |
| 4 | types: [created] |
| 5 | pull_request_target: |
| 6 | types: [opened, closed, synchronize] |
| 7 | |
| 8 | permissions: |
| 9 | actions: write |
| 10 | contents: write |
| 11 | pull-requests: write |
| 12 | statuses: write |
| 13 | |
| 14 | jobs: |
| 15 | CLAAssistant: |
| 16 | runs-on: ubuntu-latest |
| 17 | # Only run this workflow on the main repository (continuedev/continue) |
| 18 | if: github.repository == 'continuedev/continue' |
| 19 | steps: |
| 20 | - name: "CLA Assistant" |
| 21 | if: (contains(github.event.comment.body, 'recheck') || contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA')) || github.event_name == 'pull_request_target' |
| 22 | uses: contributor-assistant/github-action@v2.6.1 |
| 23 | env: |
| 24 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 25 | with: |
| 26 | path-to-signatures: "signatures/version1/cla.json" |
| 27 | path-to-document: "https://github.com/continuedev/continue/blob/main/CLA.md" |
| 28 | branch: cla-signatures |
| 29 | # Bots and CLAs signed outside of GitHub |
| 30 | allowlist: dependabot[bot],fbricon,panyamkeerthana,Jazzcort,owtaylor,halfline,agent@continue.dev |
| 31 | signed-commit-message: "CLA signed in $pullRequestNo" |