Skip to content

dele#29

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

dele#29
FutureUnreal merged 13 commits intodevfrom
main

Conversation

@FutureUnreal
Copy link
Member

@FutureUnreal FutureUnreal commented Feb 8, 2026

概要

删除仓库中的 cankao/ 参考资料目录(包含 GitHub Actions 工作流模板、CI/CD 配置文档、Prompt 模板等),并将该目录加入 .gitignore 防止再次误提交。

问题

cankao/(参考)目录包含大量 GitHub Actions 工作流模板、CI/CD 配置说明、PR Review / Issue 自动响应等 Prompt 模板文件。这些文件属于开发参考资料,不应纳入版本控制,占用仓库空间且可能造成混淆。

关联 PR:

  • Related to dele #30 - 同一作者同时提交的配套清理 PR(main → admin 分支同步)
  • Related to chore: remove funding config #5 - 此前类似的仓库清理操作(移除 funding 配置)

解决方案

  1. 删除 cankao/ 目录下全部 29 个文件(共 -6,671 行)
  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
@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 workflows and CI/CD configuration

📦 Other

Grey Divider

Walkthroughs

Description
• Removes entire .github directory containing CI/CD workflows and configuration files
• Deletes GitHub Actions workflow files for PR reviews, issue triage, release automation, and
  testing
• Removes prompt templates used by automated workflows (Claude and Codex integrations)
• Deletes CI/CD setup documentation and configuration files (CI_CD_SETUP.md, CI_TRIGGER.md,
  cliff.toml)
• Removes funding configuration (FUNDING.yml)
Diagram
flowchart LR
  A[".github directory"] -- "contains" --> B["Workflows"]
  A -- "contains" --> C["Prompts"]
  A -- "contains" --> D["Config files"]
  B -- "deleted" --> E["PR reviews, CI/CD, testing"]
  C -- "deleted" --> F["Claude & Codex prompts"]
  D -- "deleted" --> G["Setup docs & configs"]
Loading

Grey Divider

File Changes

Grey Divider

Qodo Logo

@FutureUnreal FutureUnreal merged commit 6eab915 into dev Feb 8, 2026
10 checks passed
@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

@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 example GitHub Actions workflows, prompt templates, and documentation, and added it to .gitignore to prevent future tracking.

  • Deleted 29 reference files including workflow examples for Claude/Codex integrations, CI/CD configurations, and prompt templates
  • Added /cankao/ to .gitignore to exclude the directory from version control
  • This cleanup removes reference material that was likely copied from other projects for inspiration but shouldn't be part of the actual codebase

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The PR only deletes reference/example files from a cankao/ directory and adds it to .gitignore. No production code, configurations, or dependencies are affected. The actual .github/ workflows remain unchanged.
  • No files require special attention

Important Files Changed

Filename Overview
.gitignore Added /cankao/ to gitignore to prevent reference directory from being tracked
cankao/.github/prompts/pr-review-comprehensive.md Deleted reference prompt template for comprehensive PR review (761 lines removed)
cankao/.github/workflows/claude-ci-autofix.yml Deleted reference workflow for Claude CI autofix (542 lines removed)
cankao/.github/workflows/claude-pr-review.yml Deleted reference workflow for PR reviews (514 lines removed)
cankao/.github/workflows/release.yml Deleted reference release workflow (538 lines removed)

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Git as Git Repository
    participant GH as GitHub

    Dev->>Git: Delete cankao/ directory
    Note over Git: Removes 6,671 lines across<br/>29 reference files
    Dev->>Git: Update .gitignore
    Note over Git: Add /cankao/ entry
    Dev->>Git: git commit -m "update"
    Dev->>GH: Push to remote (dev branch)
    GH->>GH: Create PR #29
    Note over GH: PR title: "dele"<br/>Target: dev branch
Loading

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

github-actions bot commented Feb 8, 2026

  • gh can’t reach api.github.com in this environment, so I couldn’t apply labels or submit the review/inline comments via GitHub API (the commands error with “error connecting to api.github.com”).
  • PR context (from GITHUB_EVENT_PATH + local git): PR #29 (“dele”), base dev (e0a230a5…), head main (d974c8cd…), 30 files changed, 1 insertion, 6671 deletions.
  • Diff review result (only added/modified line is .gitignore:23 adding /cankao/): no issues met the >=80 confidence reporting threshold; changes are effectively “delete cankao/.github/** reference files + ignore /cankao/”.
# Size label (XL: 6672 lines changed, 30 files changed)
gh pr edit 29 --repo datawhalechina/whale-whisper --add-label "size/XL"
# Summary review body (includes required XL split suggestion)
gh pr review 29 --repo datawhalechina/whale-whisper --comment --body "$(cat <<'EOF'
## 🤖 Codex PR Review

No significant issues identified in this PR.

### PR Size: XL
- **Lines changed**: 6672
- **Files changed**: 30
- **Split suggestions**: Consider splitting into (1) deleting `cankao/.github/**` and (2) adding `/cankao/` to `.gitignore` to keep review atomic.

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

---
*Automated review by Codex AI*
EOF
)"

FutureUnreal added a commit that referenced this pull request Feb 8, 2026
Merge pull request #29 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