|
1 | | -name: 'CLA Assistant' |
| 1 | +name: CLA Assistant |
| 2 | + |
2 | 3 | on: |
3 | 4 | issue_comment: |
4 | 5 | types: [created] |
5 | 6 | pull_request_target: |
6 | 7 | types: [opened, closed, synchronize] |
7 | 8 |
|
8 | | -# Explicitly configure permissions |
9 | 9 | permissions: |
10 | 10 | actions: write |
11 | 11 | contents: write |
12 | 12 | pull-requests: write |
13 | 13 | statuses: write |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - CLAAssistant: |
| 16 | + cla: |
17 | 17 | runs-on: ubuntu-latest |
| 18 | + if: | |
| 19 | + (github.event_name == 'pull_request_target') || |
| 20 | + (github.event_name == 'issue_comment' && github.event.issue.pull_request && |
| 21 | + (github.event.comment.body == 'recheck' || |
| 22 | + github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA')) |
18 | 23 | 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' |
| 24 | + - name: CLA Assistant |
21 | 25 | uses: contributor-assistant/github-action@v2.6.1 |
22 | 26 | env: |
23 | 27 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 28 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGNATURES_TOKEN }} |
24 | 29 | with: |
25 | | - # Path where signatures will be stored |
26 | | - path-to-signatures: 'signatures/version1/cla.json' |
27 | | - |
28 | | - # Path to your CLA document |
29 | | - path-to-document: 'https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md' |
30 | | - |
31 | | - # Branch to store signatures (should not be protected) |
| 30 | + path-to-signatures: 'cla-signatures.json' |
| 31 | + path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md' |
32 | 32 | branch: 'main' |
33 | | - |
34 | | - # Allowlist for users who don't need to sign (bots, core team members) |
35 | | - allowlist: shadowfax92,felarof99,dependabot[bot],renovate[bot],github-actions[bot] |
36 | | - |
37 | | - # Optional: Custom messages |
| 33 | + remote-organization-name: 'browseros-ai' |
| 34 | + remote-repository-name: 'cla-signatures' |
| 35 | + allowlist: 'shadowfax92,felarof99,bot*,*[bot],dependabot,renovate,github-actions,snyk-bot,imgbot,greenkeeper,semantic-release-bot,allcontributors' |
| 36 | + lock-pullrequest-aftermerge: false |
38 | 37 | custom-notsigned-prcomment: | |
39 | | - **CLA Assistant Lite bot** Thank you for your submission! We require contributors to sign our [Contributor License Agreement](https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md) before we can accept your contribution. |
| 38 | + Thank you for your contribution! Before we can merge this PR, we need you to sign our [Contributor License Agreement](https://github.com/${{ github.repository }}/blob/main/CLA.md). |
40 | 39 |
|
41 | | - By signing the CLA, you confirm that: |
42 | | - - You have read and agree to the AGPL-3.0 license terms |
43 | | - - Your contribution is your original work |
44 | | - - You grant us the rights to use your contribution under the AGPL-3.0 license |
| 40 | + **To sign the CLA**, please add a comment to this PR with the following text: |
45 | 41 |
|
46 | | - **To sign the CLA, please comment on this PR with:** |
47 | | - `I have read the CLA Document and I hereby sign the CLA` |
| 42 | + ``` |
| 43 | + I have read the CLA Document and I hereby sign the CLA |
| 44 | + ``` |
48 | 45 |
|
49 | | - custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' |
| 46 | + You only need to sign once. After signing, this check will pass automatically. |
50 | 47 |
|
51 | | - custom-allsigned-prcomment: | |
52 | | - **CLA Assistant Lite bot** ✅ All contributors have signed the CLA. Thank you for helping make BrowserOS better! |
| 48 | + --- |
| 49 | + <details> |
| 50 | + <summary>Troubleshooting</summary> |
53 | 51 |
|
54 | | - # Lock PR after merge to prevent signature tampering |
55 | | - lock-pullrequest-aftermerge: true |
| 52 | + - **Already signed but still failing?** Comment `recheck` to trigger a re-verification. |
| 53 | + - **Signed with a different email?** Make sure your commit email matches your GitHub account email, or add your commit email to your GitHub account. |
56 | 54 |
|
57 | | - # Custom commit messages |
58 | | - create-file-commit-message: 'docs: Create CLA signatures file' |
59 | | - signed-commit-message: 'docs: $contributorName signed the CLA in $owner/$repo#$pullRequestNo' |
| 55 | + </details> |
| 56 | + custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' |
| 57 | + custom-allsigned-prcomment: | |
| 58 | + All contributors have signed the CLA. Thank you! |
0 commit comments