Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 05fe7a4

Browse files
authored
chore: use cla assistant to support robot pr (#92)
Co-authored-by: imbajin <imbajin@users.noreply.github.com>
1 parent 4b21e94 commit 05fe7a4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/cla.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,closed,synchronize]
7+
8+
jobs:
9+
CLAssistant:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "CLA Assistant"
13+
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'
14+
uses: cla-assistant/github-action@v2.1.3-beta
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
# the below token should have repo scope and must be manually added by you in the repository's secret
18+
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
19+
with:
20+
path-to-signatures: '.github/cla-signatures/cla.json'
21+
path-to-document: 'https://github.com/hugegraph/hugegraph-doc/blob/master/CLA.md' # e.g. a CLA or a DCO document
22+
custom-allsigned-prcomment: '**Good**! All Contributors have signed the [CLA](https://github.com/hugegraph/hugegraph-doc/blob/master/CLA.md).'
23+
# branch should not be protected
24+
branch: 'cla-assist'
25+
allowlist: bot*
26+
lock-pullrequest-aftermerge: false
27+
28+
# the following are the optional inputs - If the optional inputs are not given, then default values will be taken
29+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
30+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
31+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
32+
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
33+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
34+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
35+
#use-dco-flag: true - If you are using DCO instead of CLA

0 commit comments

Comments
 (0)