Skip to content

dele#30

Merged
FutureUnreal merged 13 commits intoadminfrom
main
Feb 8, 2026
Merged

dele#30
FutureUnreal merged 13 commits intoadminfrom
main

Conversation

@FutureUnreal
Copy link
Member

@FutureUnreal FutureUnreal commented Feb 8, 2026

概要

删除仓库中的 cankao/ 参考资料目录,并将该目录加入 .gitignore 防止再次被跟踪。此 PR 将清理同步至 admin 分支。

问题

cankao/ 目录包含大量 GitHub Actions 工作流模板、CI/CD 配置说明文档、Prompt 模板等参考资料文件。这些文件不属于项目运行所需的代码,不应纳入版本控制,占用仓库空间且可能造成混淆。

关联 PR:

解决方案

  1. 删除 cankao/ 目录下全部 29 个文件
  2. .gitignore 中添加 /cankao/ 规则,防止该目录被再次跟踪

变更内容

核心变更

  • 删除 cankao/.github/ 下的全部参考文件,包括:
    • CI/CD 配置文档(CI_CD_SETUP.mdCI_TRIGGER.mdFUNDING.yml
    • Changelog 配置(cliff.toml
    • Prompt 模板(changelog-update.mdcodex-issue-auto-response.mdcodex-pr-review.mddocs-update.mdpr-review-comprehensive.mdrelease-analysis.mdrelease-notes.md
    • GitHub Actions 工作流模板(claude-ci-autofix.ymlclaude-issue-*.ymlclaude-mention-responder.ymlclaude-pr-*.ymlclaude-review-responder.ymlclaude-unified-docs.ymlcodex-*.ymldev.ymlpr-check.ymlrelease.ymltest.yml

辅助变更

  • .gitignore:新增 /cankao/ 忽略规则(+1 行)

测试

自测方式

  • 确认删除的文件均为参考资料,不影响项目实际运行的 .github/workflows/
  • 确认 .gitignore 规则正确

Checklist

  • 代码符合项目规范
  • 已完成自审
  • 本地测试通过
  • 文档已更新(如需要)

由 Claude AI 自动生成

FutureUnreal and others added 13 commits February 8, 2026 17:24
* 合并 (#8)

* chore: add comprehensive contributing guide (#10)

* chore: add comprehensive contributing guide

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* ci: restore pr-check.yml workflow for dev branch

- Restore backend and frontend PR checks
- Enable Python syntax check and import test for backend
- Enable pnpm build check for frontend
- Fix 'Expected — Waiting for status to be reported' issue

* feat(ci): upgrade PR review + add CI auto-fix & review responder

- Upgrade codex-pr-review.md to 6-perspective review with confidence scoring
- Rewrite claude-pr-review.yml with Codex-first fallback pattern
- Add claude-ci-autofix.yml for auto-fixing CI failures + dev sync
- Add claude-review-responder.yml for auto-responding to PR reviews
- Update CI_CD_SETUP.md with new workflow documentation

* fix(ci): address Codex review security findings

- [Critical] auto-fix: restrict to same-repo PRs only (fork protection)
- [High] review-responder: require explicit @claude mention, restrict to same-repo
- [Medium] auto-fix: use `gh run view --log-failed` instead of broken API call
- [Medium] pr-review: fix Codex matching to use head_sha + pull_requests
- [Low] auto-fix: correct workflow name "Tests" → "Test Suite"

* fix(ci): restore workflow name to match branch protection rules

Rename "Claude PR Review (Fallback)" back to "Claude PR Review"
so the check name matches what branch protection expects.

* revert: restore workflow name to "Claude PR Review (Fallback)"

* ci: fix invalid workflow syntax

* ci: fix pnpm cache setup

* ci: fix test workflow step order

* ci: harden Claude workflows

* ci: pin review responder checkout to SHA

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* 合并 (#8)

* chore: add comprehensive contributing guide (#10)

* chore: add comprehensive contributing guide

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* ci: restore pr-check.yml workflow for dev branch

- Restore backend and frontend PR checks
- Enable Python syntax check and import test for backend
- Enable pnpm build check for frontend
- Fix 'Expected — Waiting for status to be reported' issue

* feat(ci): upgrade PR review + add CI auto-fix & review responder

- Upgrade codex-pr-review.md to 6-perspective review with confidence scoring
- Rewrite claude-pr-review.yml with Codex-first fallback pattern
- Add claude-ci-autofix.yml for auto-fixing CI failures + dev sync
- Add claude-review-responder.yml for auto-responding to PR reviews
- Update CI_CD_SETUP.md with new workflow documentation

* fix(ci): address Codex review security findings

- [Critical] auto-fix: restrict to same-repo PRs only (fork protection)
- [High] review-responder: require explicit @claude mention, restrict to same-repo
- [Medium] auto-fix: use `gh run view --log-failed` instead of broken API call
- [Medium] pr-review: fix Codex matching to use head_sha + pull_requests
- [Low] auto-fix: correct workflow name "Tests" → "Test Suite"

* fix(ci): restore workflow name to match branch protection rules

Rename "Claude PR Review (Fallback)" back to "Claude PR Review"
so the check name matches what branch protection expects.

* revert: restore workflow name to "Claude PR Review (Fallback)"

* ci: fix invalid workflow syntax

* ci: fix pnpm cache setup

* ci: fix test workflow step order

* ci: harden Claude workflows

* ci: pin review responder checkout to SHA

* docs: add CONTRIBUTING.md reference in README

Direct contributors to read the contributing guide before starting.

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* 合并 (#8)

* chore: add comprehensive contributing guide (#10)

* chore: add comprehensive contributing guide

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* ci: restore pr-check.yml workflow for dev branch

- Restore backend and frontend PR checks
- Enable Python syntax check and import test for backend
- Enable pnpm build check for frontend
- Fix 'Expected — Waiting for status to be reported' issue

* feat(ci): upgrade PR review + add CI auto-fix & review responder

- Upgrade codex-pr-review.md to 6-perspective review with confidence scoring
- Rewrite claude-pr-review.yml with Codex-first fallback pattern
- Add claude-ci-autofix.yml for auto-fixing CI failures + dev sync
- Add claude-review-responder.yml for auto-responding to PR reviews
- Update CI_CD_SETUP.md with new workflow documentation

* fix(ci): address Codex review security findings

- [Critical] auto-fix: restrict to same-repo PRs only (fork protection)
- [High] review-responder: require explicit @claude mention, restrict to same-repo
- [Medium] auto-fix: use `gh run view --log-failed` instead of broken API call
- [Medium] pr-review: fix Codex matching to use head_sha + pull_requests
- [Low] auto-fix: correct workflow name "Tests" → "Test Suite"

* fix(ci): restore workflow name to match branch protection rules

Rename "Claude PR Review (Fallback)" back to "Claude PR Review"
so the check name matches what branch protection expects.

* revert: restore workflow name to "Claude PR Review (Fallback)"

* ci: fix invalid workflow syntax

* ci: fix pnpm cache setup

* ci: fix test workflow step order

* ci: harden Claude workflows

* ci: pin review responder checkout to SHA

* docs: add CONTRIBUTING.md reference in README

Direct contributors to read the contributing guide before starting.

* update

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
fix: use env vars instead of secrets in step-level if conditions
@FutureUnreal FutureUnreal merged commit e646cba into admin Feb 8, 2026
25 checks passed
@github-actions github-actions bot added needs-review Needs careful review (large/complex changes) size/XL PR size: >= 1000 lines changed labels Feb 8, 2026
@qodo-code-review
Copy link

Review Summary by Qodo

Remove .github directory and CI/CD automation files from cankao

📦 Other

Grey Divider

Walkthroughs

Description
• Removes entire .github directory and its contents from the cankao subdirectory
• Deletes CI/CD workflow files including GitHub Actions configurations for PR reviews, issue triage,
  and automated responses
• Removes prompt templates used by Claude-based automation workflows
• Deletes configuration files for release management, changelog generation, and CI/CD setup
  documentation
• Eliminates funding and trigger configuration files
Diagram
flowchart LR
  A["cankao/.github<br/>directory"] -- "deleted" --> B["Workflows removed"]
  A -- "deleted" --> C["Prompts removed"]
  A -- "deleted" --> D["Config files removed"]
  B -- "includes" --> E["PR review & CI workflows"]
  C -- "includes" --> F["Claude automation prompts"]
  D -- "includes" --> G["FUNDING, CI_CD_SETUP, etc."]
Loading

Grey Divider

File Changes

Grey Divider

Qodo Logo

@qodo-code-review
Copy link

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@github-actions github-actions bot mentioned this pull request Feb 8, 2026
Merged
6 tasks
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 8, 2026

Greptile Overview

Greptile Summary

Removed the cankao/ (reference) directory containing 6,671 lines of reference documentation and example workflow files, and added /cankao/ to .gitignore.

Key changes:

  • Deleted 29 files from cankao/.github/ including CI/CD documentation, workflow templates, and prompt templates
  • Modified .gitignore to exclude the cankao/ directory from version control
  • The actual GitHub workflows in the main .github/workflows/ directory remain intact and functional

Impact:

  • No functional code changes - only removal of reference/example materials
  • Active CI/CD workflows and configurations are unaffected
  • Repository cleanup reduces clutter without affecting operations

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The PR only removes reference/documentation files from a cankao/ directory and adds it to .gitignore. No functional code is affected, and the actual workflows in .github/workflows/ remain intact. This is purely a cleanup operation.
  • No files require special attention

Important Files Changed

Filename Overview
.gitignore Added /cankao/ to gitignore to exclude reference materials directory
cankao/.github/CI_CD_SETUP.md Deleted CI/CD setup documentation (reference material)
cankao/.github/workflows/claude-pr-review.yml Deleted reference workflow file (actual workflow exists in main .github/)
cankao/.github/workflows/codex-pr-review.yml Deleted reference workflow file (actual workflow exists in main .github/)
cankao/.github/workflows/release.yml Deleted reference release workflow (actual workflow exists in main .github/)

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Git as Git Repository
    participant GI as .gitignore
    
    Dev->>Git: Remove cankao/ directory (29 files)
    Note over Git: Delete reference documentation<br/>workflows, and prompts
    Dev->>GI: Add /cankao/ to .gitignore
    Note over GI: Prevent future tracking of<br/>cankao/ directory
    Git->>Git: Active workflows in .github/<br/>remain unchanged
    Note over Git: No impact on CI/CD operations
Loading

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

gh can’t reach GitHub from this runner (error connecting to api.github.com / DNS), so I couldn’t fetch PR metadata/diff or post labels/comments. I reconstructed the PR diff locally from the merge commit parents (base e0a230ahead d974c8c; merge e646cba).

Size calculation from local diff: XL (6672 lines changed across 30 files). Label to apply: size/XL.

# Apply size label (will work in an environment with GitHub API access)
REPO="${PR_REPO:-$GITHUB_REPOSITORY}"
PR="${PR_NUMBER}"
gh pr edit "$PR" --repo "$REPO" --add-label "size/XL"

No inline comments: the only added/modified code is a single .gitignore line; the rest of the diff is deletions under cankao/.github/**, with no added/modified lines to anchor issues on the RIGHT side.

# Submit review summary (will work in an environment with GitHub API access)
REPO="${PR_REPO:-$GITHUB_REPOSITORY}"
PR="${PR_NUMBER}"

gh pr review "$PR" --repo "$REPO" --comment -F - <<'EOF'
## 🤖 Codex PR Review

This PR is XL primarily due to bulk deletions under `cankao/.github/**` and a one-line `.gitignore` update to ignore `/cankao/`. No backend/frontend runtime source changes are included in the diff; risk is concentrated in removal of reference materials.

### PR Size: XL
- **Lines changed**: 6672
- **Files changed**: 30
- **Split suggestion**: (1) `.gitignore` update to ignore `/cankao/` (2) bulk removal of `cankao/.github/**` reference files.

### Issues Found

| Category | Critical | High | Medium | Low |
|----------|----------|------|--------|-----|
| Logic/Bugs | 0 | 0 | 0 | 0 |
| Security | 0 | 0 | 0 | 0 |
| Error Handling | 0 | 0 | 0 | 0 |
| Types | 0 | 0 | 0 | 0 |
| Comments/Docs | 0 | 0 | 0 | 0 |
| Tests | 0 | 0 | 0 | 0 |
| Simplification | 0 | 0 | 0 | 0 |

### Critical Issues (Must Fix)
None.

### High Priority Issues (Should Fix)
None.

### Review Coverage
- [x] Logic and correctness
- [x] Security (OWASP Top 10)
- [x] Error handling
- [x] Type safety
- [x] Documentation accuracy
- [x] Test coverage
- [x] Code clarity

---
*Automated review by Codex AI*
EOF

FutureUnreal added a commit that referenced this pull request Feb 8, 2026
Merge pull request #30 from datawhalechina/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Needs careful review (large/complex changes) size/XL PR size: >= 1000 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant