Skip to content

chore: 添加 CLA + PR 模板 + cla-check workflow#7

Merged
yi-ge merged 1 commit into
mainfrom
chore/add-cla-and-pr-template
May 8, 2026
Merged

chore: 添加 CLA + PR 模板 + cla-check workflow#7
yi-ge merged 1 commit into
mainfrom
chore/add-cla-and-pr-template

Conversation

@yi-ge
Copy link
Copy Markdown
Member

@yi-ge yi-ge commented May 8, 2026

变更说明 / 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

  • cla.yml 文件来自 desirecore 仓库验证过的版本,逻辑未改
  • PR 模板的 CLA 链接已替换为 docs 仓库的 CLA.md 路径

检查清单 / Checklist

- 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>
Copilot AI review requested due to automatic review settings May 8, 2026 09:18
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 8, 2026 9:18am

Request Review

@yi-ge yi-ge merged commit c632e94 into main May 8, 2026
4 checks passed
@yi-ge yi-ge deleted the chore/add-cla-and-pr-template branch May 8, 2026 09:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md to 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.

Comment thread .github/workflows/cla.yml
@@ -0,0 +1,47 @@
name: "CLA Check"
on:
pull_request_target:
Comment thread .github/workflows/cla.yml

// Skip bot accounts
const botList = ['dependabot[bot]', 'renovate[bot]', 'github-actions[bot]'];
if (botList.includes(pr.user.login)) {
Comment thread .github/workflows/cla.yml
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)]');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants