-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.91 KB
/
cla.yml
File metadata and controls
50 lines (42 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CLA Assistant
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
permissions:
actions: write
contents: write
pull-requests: write
statuses: write
jobs:
cla:
if: |
(github.event_name == 'pull_request_target' &&
github.event.action != 'closed' &&
github.event.pull_request.head.repo.full_name != github.repository) ||
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, 'I have read the CLA Document and I hereby sign the CLA'))
runs-on: ubuntu-latest
steps:
- name: CLA Assistant
uses: contributor-assistant/github-action@v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_TOKEN }}
with:
path-to-signatures: '.github/CLA/signatures.json'
path-to-document: 'https://github.com/${{ github.repository }}/blob/main/.github/CLA/individual-cla.md'
branch: main
allowlist: 'dependabot[bot],renovate[bot],github-actions[bot]'
custom-notsigned-prcomment: |
Thank you for your pull request! Before we can merge it, we need you to sign our
[Contributor License Agreement](${{ github.server_url }}/${{ github.repository }}/blob/main/.github/CLA/individual-cla.md).
**To sign**, please comment on this PR with the exact text:
> I have read the CLA Document and I hereby sign the CLA
If your employer requires a Corporate CLA, please see our
[Corporate CLA](${{ github.server_url }}/${{ github.repository }}/blob/main/.github/CLA/corporate-cla.md)
and contact johnson@signetstack.io.
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
custom-allsigned-prcomment: 'All contributors have signed the CLA.'