Skip to content

Commit 5403459

Browse files
authored
Create cla.yml (#318)
1 parent ca0c124 commit 5403459

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/cla.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,closed,synchronize]
7+
8+
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
9+
permissions:
10+
actions: write
11+
contents: write # this can be 'read' if the signatures are in remote repository
12+
pull-requests: write
13+
statuses: write
14+
15+
jobs:
16+
CLAAssistant:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: "CLA Assistant"
20+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have hereby read the Digital Asset CLA and agree to its terms') || github.event_name == 'pull_request_target'
21+
uses: digital-asset/cla-action@v0.0.2
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# the below token should have repo scope and must be manually added by you in the repository's secret
25+
# This token is required only if you have configured to store the signatures in a remote repository/organization
26+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PAT_FG_CCI_VALIDATOR_CLA }}
27+
with:
28+
path-to-document: 'https://github.com/digital-asset/daml/blob/main/CODE_OF_CONDUCT.md' # e.g. a CLA or a DCO document
29+
# branch should not be protected
30+
branch: 'main'
31+
allowlist: bot*
32+
custom-notsigned-prcomment: '🎉 Thank you for your contribution! It appears you have not yet signed the Agreement [DA Contributor License Agreement (CLA)](https://gist.github.com/digitalasset-cla), which is required for your changes to be incorporated into an Open Source Software (OSS) project. Please kindly read the and reply on a new comment with the following text to agree:'
33+
custom-pr-sign-comment: 'I have hereby read the Digital Asset CLA and agree to its terms'
34+
custom-allsigned-prcomment: '✅ All required contributors have signed the CLA for this PR. Thank you!'
35+
# Remote repository storing CLA signatures.
36+
remote-organization-name: DACH-NY
37+
remote-repository-name: cla-action-data
38+
# Branch where CLA signatures are stored.
39+
path-to-signatures: signatures/signatures.json
40+
41+
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
42+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
43+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
44+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
45+
#signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
46+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
47+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
48+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
49+
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
50+
#use-dco-flag: true - If you are using DCO instead of CLA

0 commit comments

Comments
 (0)