chore: 添加 CLA + PR 模板 + cla-check workflow#7
Merged
Conversation
- CLA.md:与主仓库 desirecore/desirecore 一致的贡献者许可协议 - .github/PULL_REQUEST_TEMPLATE.md:含 CLA 勾选项(链接指向本仓库 CLA.md) - .github/workflows/cla.yml:PR 上自动检查贡献者是否勾选 CLA(机器人/内部成员自动跳过) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR introduces a Contributor License Agreement (CLA) mechanism for the docs repository, mirroring the approach used in the main desirecore repository, by adding the CLA text, a PR template checkbox, and an automated GitHub Actions check.
Changes:
- Add
CLA.mdto define the contributor license agreement terms. - Add a PR template with a CLA acceptance checkbox.
- Add a GitHub Actions workflow to verify the CLA checkbox is checked on PRs (with internal contributor/bot skipping logic).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
CLA.md |
Adds the CLA document content to the repository root. |
.github/PULL_REQUEST_TEMPLATE.md |
Adds a PR template that includes a CLA checkbox and link to CLA.md. |
.github/workflows/cla.yml |
Adds an automated “CLA Check” workflow that validates the PR body contains a checked CLA checkbox. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,47 @@ | |||
| name: "CLA Check" | |||
| on: | |||
| pull_request_target: | |||
|
|
||
| // Skip bot accounts | ||
| const botList = ['dependabot[bot]', 'renovate[bot]', 'github-actions[bot]']; | ||
| if (botList.includes(pr.user.login)) { |
Comment on lines
+35
to
+37
| const claChecked = | ||
| body.includes('[x] 我已阅读并同意 [贡献者许可协议 (CLA)]') || | ||
| body.includes('[x] I have read and agree to the [Contributor License Agreement (CLA)]'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明 / Description
镜像主仓库
desirecore/desirecore的贡献者许可协议机制:CLA.md(与主仓库内容一致).github/PULL_REQUEST_TEMPLATE.md,含 CLA 勾选项.github/workflows/cla.yml,PR 上自动检查 CLA 勾选状态(机器人 / OWNER / MEMBER / COLLABORATOR 自动跳过)合并后会把
cla-check设为 main 的 required status check。测试方式 / Test Plan
检查清单 / Checklist