From 1e902b2eed8de21054e6e3d483e5f4847ec6cc0c Mon Sep 17 00:00:00 2001 From: zhiheng123 <903292776@qq.com> Date: Tue, 8 Apr 2025 20:34:46 +0800 Subject: [PATCH] ci: add cla workflow --- .github/workflows/cla.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/cla.yml diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 0000000..072280a --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,37 @@ +# Copyright 2025 Protocol-Laboratory Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: "CLA Assistant" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +jobs: + CLAAssistant: + runs-on: ubuntu-latest + steps: + - name: "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' + uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN: ${{ secrets.ACCESS_FOR_CLA }} + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://github.com/protocol-laboratory/.github/blob/main/README.md' + branch: 'main' + allowlist: dependabot,bot*,github-actions + remote-repository-name: .github