chore: add comprehensive contributing guide#10
Conversation
Review Summary by QodoAdd comprehensive bilingual contributing guide
WalkthroughsDescription• Add comprehensive bilingual contributing guide (Chinese/English) • Document development setup, branch naming, and commit conventions • Provide code style guidelines for Python backend and TypeScript/Vue frontend • Include testing procedures, PR workflow, and issue reporting templates Diagramflowchart LR
A["Contributing Guide"] --> B["Chinese Section"]
A --> C["English Section"]
B --> D["Setup Instructions"]
B --> E["Code Style & Testing"]
B --> F["PR & Issue Process"]
C --> D
C --> E
C --> F
File Changes1. CONTRIBUTING.md
|
Greptile OverviewGreptile SummaryAdded comprehensive bilingual (Chinese/English) contributing guide covering the complete contribution workflow. The document provides clear guidance on setup, branch naming, commit conventions, code style, testing, and PR process. Key additions:
Minor issues found:
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| CONTRIBUTING.md | Added comprehensive bilingual contributing guide with detailed workflow, conventions, and testing procedures |
Sequence Diagram
sequenceDiagram
participant C as Contributor
participant GH as GitHub
participant CI as CI Pipeline
participant M as Maintainer
participant Dev as dev branch
participant Main as main branch
Note over C,Main: Contribution Workflow
C->>GH: Fork repository
C->>C: git checkout dev
C->>C: git pull origin dev
C->>C: git checkout -b feature/new-feature
C->>C: Make code changes
C->>C: Run local tests<br/>(compileall, typecheck, build)
C->>GH: git push origin feature/new-feature
C->>GH: Create PR targeting dev branch
GH->>CI: Trigger PR checks
CI->>CI: Run backend checks
CI->>CI: Run frontend checks
CI->>GH: Report CI status
GH->>M: Notify maintainer
M->>GH: Review PR (within 2 business days)
alt Changes requested
M->>C: Request changes
C->>C: Make updates
C->>GH: Push to same branch
GH->>CI: Re-run checks
end
alt PR approved and CI passes
M->>Dev: Squash and merge PR
Note over Dev: PR merged to dev branch
Note over Main: Periodic releases
M->>Main: Release merge from dev
end
Code Review by Qodo
1. API key in example config
|
🤖 Codex PR ReviewPR Summary
Key Risks
Findings
|
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>
* 合并 (#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> --------- 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 --------- 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 --------- 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" --------- 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 --------- 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>
变更说明
关联 Issue / 需求
自测方式
cd backend && uv run uvicorn app.main:app --reload --port 8090cd frontend && pnpm --filter @whalewhisper/web dev风险 & 回滚
Checklist
PR Checks)通过📝 PR 说明(Codex 自动生成)
CONTRIBUTING.md,提供中英双语贡献指南,覆盖行为准则、开发环境搭建(backend/frontend)、分支/提交规范、代码风格、测试、PR/Issue 流程等。主要用于统一协作规范、降低新贡献者上手成本(不涉及运行时代码改动)。CONTRIBUTING.md,确认目录/锚点跳转与中英导航正常、代码块渲染无异常。backend/config/engines.yaml、backend/app/main.py、pnpm --filter @whalewhisper/web dev等)。datawhalechina/WhaleWhisper.git(与当前仓库 URL 命名不一致,可能依赖 GitHub 重定向);部分示例命令/配置可能随项目演进而过期,需要后续维护同步。