mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-06 08:15:57 +00:00
feat: setup CLA assistant lite workflow
This commit is contained in:
parent
010c1a4e46
commit
b9e04296fd
2 changed files with 43 additions and 0 deletions
30
.github/workflows/cla.yml
vendored
Normal file
30
.github/workflows/cla.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: "CLA Assistant"
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_target:
|
||||
types: [opened,closed,synchronize]
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
pull-requests: write
|
||||
statuses: write
|
||||
|
||||
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 }}
|
||||
with:
|
||||
path-to-signatures: 'signatures/version1/cla.json'
|
||||
path-to-document: 'https://github.com/iflytek/skillhub/blob/main/CLA.md'
|
||||
branch: 'main'
|
||||
allowlist: 'dependabot[bot],renovate[bot],github-actions[bot]'
|
||||
create-file-commit-message: 'docs: creating file for storing CLA Signatures'
|
||||
signed-commit-message: 'docs: $contributorName has signed the CLA in $owner/$repo#$pullRequestNo'
|
||||
13
CLA.md
Normal file
13
CLA.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Contributor License Agreement (CLA)
|
||||
|
||||
By contributing to this project, you agree to the following terms:
|
||||
|
||||
1. **Grant of License**: You grant to the project maintainers a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your contributions and such derivative works.
|
||||
|
||||
2. **Original Creation**: You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your contributions, you represent that you have received permission to make contributions on behalf of that employer, that your employer has waived such rights for your contributions to the project, or that your employer has executed a separate Corporate CLA with the project.
|
||||
|
||||
3. **Moral Rights**: If your local laws recognize "moral rights," you hereby waive them to the maximum extent permitted by law.
|
||||
|
||||
4. **Disclaimer**: Your contributions are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
By commenting "I have read the CLA Document and I hereby sign the CLA" in your Pull Request, you accept this agreement.
|
||||
Loading…
Add table
Reference in a new issue