cla.yml

 1name: "CLA Assistant"
 2
 3on:
 4  issue_comment:
 5    types: [created]
 6  pull_request_target:
 7    types: [opened, closed, synchronize]
 8
 9permissions:
10  actions: write
11  contents: write
12  pull-requests: write
13  statuses: write
14
15jobs:
16  CLAAssistant:
17    if: github.repository == 'charmbracelet/crush'
18    runs-on: ubuntu-latest
19    steps:
20      - name: "CLA Assistant"
21        if: |
22          github.event.comment.body == 'recheck' ||
23          github.event.comment.body == 'I have read the Contributor License Agreement (CLA) and hereby sign the CLA.' ||
24          github.event_name == 'pull_request_target'
25        uses: contributor-assistant/github-action@v2.6.1
26        env:
27          GITHUB_TOKEN: ${{ secrets.CRUSH_CLA_BOT }}
28        with:
29          path-to-signatures: ".github/cla-signatures.json"
30          path-to-document: "https://github.com/charmbracelet/crush/blob/main/CLA.md"
31          branch: "main"
32          allowlist: charmcli,charmcrush,dependabot[bot]
33          custom-pr-sign-comment: "I have read the Contributor License Agreement (CLA) and hereby sign the CLA."
34          custom-notsigned-precomment: "Thank you for your submission. We really appreciate it! Like many open-source projects, we ask that you sign our [Contributor License Agreement](https://github.com/charmbracelet/crush/blob/main/CLA.md) before we can accept your contribution. You can sign the CLA by just posting a Pull Request comment same as the below format."
35          lock-pullrequest-aftermerge: false
36          signed-commit-message: "chore(legal): @$contributorName has signed the CLA"