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.GITHUB_TOKEN }}
28 with:
29 path-to-signatures: ".github/cla-signatures.json"
30 path-to-document: "https://github.com/charmbracelet/crush/blob/main/CLA.md" # TODO: provide the CLA.md file (Christian)
31 branch: "main" # WARN: if we make `main` protected, this will start failing
32 allowlist: dependabot[bot]
33 custom-pr-sign-comment: "I have read the Contributor License Agreement (CLA) and hereby sign the CLA."
34 lock-pullrequest-aftermerge: false
35 signed-commit-message: "chore(legal): @$contributorName has signed the CLA in $owner/$repo#$pullRequestNo"