Skip to content

Commit 55682ab

Browse files
authored
Add CLA Assistant lite github action (#421)
Ref: https://github.com/contributor-assistant/github-action
1 parent ae5ee15 commit 55682ab

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/cla.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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
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 read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
21+
uses: contributor-assistant/[email protected]
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.PERSONAL_ACCESS_TOKEN }}
27+
with:
28+
path-to-signatures: 'signatures/version1/cla.json'
29+
path-to-document: 'https://github.com/parseablehq/.github/blob/main/CLA.md' # e.g. a CLA or a DCO document
30+
# branch should not be protected
31+
branch: 'main'
32+
allowlist: dependabot[bot],deepsource-autofix[bot],deepsourcebot
33+
34+
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
35+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
36+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
37+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
38+
#signed-commit-message: 'For example: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
39+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
40+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
41+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
42+
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
43+
#use-dco-flag: true - If you are using DCO instead of CLA

0 commit comments

Comments
 (0)