-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (42 loc) · 1.87 KB
/
cla.yml
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
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
workflow_call:
permissions:
actions: write
contents: write
pull-requests: write
statuses: write
jobs:
cla-assistant:
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'
runs-on: ubuntu-latest
steps:
- name: Get Org Members
id: members
uses: octokit/[email protected]
with:
route: GET /orgs/anyproto/members?per_page=100
env:
GITHUB_TOKEN: ${{ secrets.ANY_CLA_TOKEN }}
- name: Extract Member Logins
run: |
echo '${{ steps.members.outputs.data }}' | jq -r '.[].login' | tr '\n' ',' > members.txt
echo "dependabot[bot],allcontributors[bot],any-bot[bot],anyprotoautomator,dragosrotaru" >> members.txt
echo "members=$(cat members.txt)" >> "$GITHUB_ENV"
- name: CLA Assistant
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.ANY_CLA_TOKEN }}
with:
custom-notsigned-prcomment: '<br/>Thank you for your pull request, we really appreciate it!<br/><br/>Please sign our [Contributor License Agreement](https://github.com/anyproto/.github/blob/main/docs/CLA.md) before we can accept your contribution.<br/>You can sign the CLA by simply commenting on this pull request with the following text.<br/>'
path-to-document: "https://github.com/anyproto/.github/blob/main/docs/CLA.md"
remote-organization-name: "anyproto"
remote-repository-name: "cla"
branch: "main"
path-to-signatures: "signatures.json"
allowlist: ${{ env.members }}