-
-
Notifications
You must be signed in to change notification settings - Fork 100
39 lines (34 loc) · 1.41 KB
/
cla.yml
File metadata and controls
39 lines (34 loc) · 1.41 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
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:
runs-on: ubuntu-latest
if: |
(github.event_name == 'pull_request_target' && github.event.action != 'closed')
|| (github.event_name == 'issue_comment' && github.event.issue.pull_request
&& startsWith(github.event.comment.body, 'I have read the CLA'))
steps:
- name: CLA Assistant
uses: contributor-assistant/github-action@v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: "signatures/cla.json"
path-to-document: "https://github.com/${{ github.repository }}/blob/main/CLA.md"
branch: "main"
allowlist: "datlechin,dependabot[bot],github-actions[bot]"
custom-notsigned-prcomment: |
Thank you for your contribution! Before we can merge this PR, you need to sign our [Contributor License Agreement](https://github.com/${{ github.repository }}/blob/main/CLA.md).
To sign, please comment below with:
> I have read the CLA Document and I hereby sign the CLA.
custom-pr-sign-comment: "I have read the CLA Document and I hereby sign the CLA."