Skip to content

Commit 619aaa7

Browse files
authored
ci: add cla workflow (#43)
Signed-off-by: zhiheng123 <903292776@qq.com>
1 parent f93b874 commit 619aaa7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/cla.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2025 Protocol-Laboratory Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "CLA Assistant"
16+
on:
17+
issue_comment:
18+
types: [created]
19+
pull_request_target:
20+
types: [opened,closed,synchronize]
21+
22+
jobs:
23+
CLAAssistant:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: "CLA Assistant"
27+
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'
28+
uses: contributor-assistant/github-action@v2.6.1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
PERSONAL_ACCESS_TOKEN: ${{ secrets.ACCESS_FOR_CLA }}
32+
with:
33+
path-to-signatures: 'signatures/version1/cla.json'
34+
path-to-document: 'https://github.com/protocol-laboratory/.github/blob/main/README.md'
35+
branch: 'main'
36+
allowlist: dependabot,bot*,github-actions
37+
remote-repository-name: .github

0 commit comments

Comments
 (0)