Skip to content

docs: sync contributing and README#25

Merged
FutureUnreal merged 1 commit intodevfrom
admin
Feb 8, 2026
Merged

docs: sync contributing and README#25
FutureUnreal merged 1 commit intodevfrom
admin

Conversation

@FutureUnreal
Copy link
Member

@FutureUnreal FutureUnreal commented Feb 8, 2026

概要

将 CONTRIBUTING.md 和 README.md 中的版本要求、仓库 URL、目录结构、命令示例等信息与项目当前实际状态对齐,并补充安全漏洞报告指引。

问题

PR #10 引入的 CONTRIBUTING.md 以及 README.md 中存在多处与项目现状不一致的内容:仓库 URL 仍使用旧大写命名、Python/Node.js/pnpm 版本要求过低、前端端口号和目录结构已变更、后端启动命令未使用 uv run、贡献者徽章指向了错误的仓库。

关联 PR:

解决方案

逐项修正文档中的过时信息,使其与 CI 环境和实际项目结构保持同步。

变更内容

核心变更

  • 仓库 URL 修正datawhalechina/WhaleWhisper.gitdatawhalechina/whale-whisper.git(CONTRIBUTING.md、README.md 多处)
  • Python 版本要求3.8+3.10+,与 backend/pyproject.toml 和 CI (3.11) 对齐
  • Node.js / pnpm 版本:Node.js 16+20+,pnpm 8+9.12.2
  • 前端端口localhost:5173localhost:5174
  • 后端启动命令uvicorn ...uv run uvicorn ...
  • 目录结构:更新为实际布局(frontend/apps/web/frontend/apps/desktop-tauri/backend/examples/backend/scripts/data/
  • 贡献者徽章:从 base-nlp 修正为 whale-whisper

辅助变更

  • 添加 CI 环境对齐建议(Python >= 3.10、Node.js 20、pnpm 9.12.2)
  • 新增安全漏洞报告指引,指向 .github/SECURITY.md(中英双语)
  • "填写 PR 模板" → "完善 PR 描述",与 PR 模板移除保持一致
  • 移除已不存在的 pnpm run typecheck 步骤
  • 更新前端共享代码放置建议和提交前测试命令

测试

自测方式

  • 文档中所有链接指向正确的仓库地址
  • 版本号与 CI 配置 / pyproject.toml 一致
  • 目录结构描述与实际项目结构匹配

Checklist

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

由 Claude AI 自动生成

@github-actions github-actions bot added area/docs Touches docs/README size/S PR size: < 200 lines changed type/docs Documentation changes labels Feb 8, 2026
@qodo-code-review
Copy link

Review Summary by Qodo

Sync CONTRIBUTING and README with updated requirements and URLs

📝 Documentation

Grey Divider

Walkthroughs

Description
• Updated Python version requirement from 3.8+ to 3.10+ across docs
• Corrected repository URL from WhaleWhisper to whale-whisper
• Updated frontend port from 5173 to 5174 and added uv run prefix
• Clarified frontend code organization and removed typecheck command
• Added security vulnerability reporting guidelines
• Updated dependencies: Node.js 16+ to 20+, pnpm 8+ to 9.12.2
• Reorganized project structure documentation with apps/ subdirectory
Diagram
flowchart LR
  A["Documentation Files"] -->|Update Python version| B["3.8+ → 3.10+"]
  A -->|Correct URLs| C["WhaleWhisper → whale-whisper"]
  A -->|Update ports| D["5173 → 5174"]
  A -->|Update dependencies| E["Node.js 16+ → 20+<br/>pnpm 8+ → 9.12.2"]
  A -->|Add guidelines| F["Security reporting<br/>Code organization"]
Loading

Grey Divider

File Changes

1. CONTRIBUTING.md 📝 Documentation +29/-23

Sync Python version, URLs, and development guidelines

• Updated Python version requirement from 3.8+ to 3.10+ with CI version 3.11
• Changed repository clone URL from WhaleWhisper.git to whale-whisper.git
• Updated backend startup command to use uv run uvicorn
• Changed frontend port from 5173 to 5174
• Updated type hints reference from Python 3.8+ to 3.10+ with reference to backend/pyproject.toml
• Clarified frontend code organization: shared code in frontend/packages/* vs app-specific in
 frontend/apps/*/src
• Removed pnpm run typecheck command from frontend build test section
• Changed PR submission wording from "Fill Out PR Template" to "Write a Clear PR Description"
• Updated GitHub URLs from WhaleWhisper to whale-whisper
• Added new section for security vulnerability reporting with reference to .github/SECURITY.md

CONTRIBUTING.md


2. README.md 📝 Documentation +16/-14

Update requirements, URLs, and project structure documentation

• Updated Python badge from 3.8+ to 3.10+
• Updated prerequisites: Python 3.10+ (CI: 3.11), Node.js 20+, pnpm 9.12.2
• Changed frontend access port from 5173 to 5174
• Reorganized project structure with frontend/apps/ subdirectory and added data/ directory
• Updated contributor badge URL from base-nlp to whale-whisper repository
• Updated GitHub issue and contribution URLs from WhaleWhisper to whale-whisper
• Updated test commands with specific paths: cd backend && python -m compileall -q app and `cd
 frontend && pnpm --filter @whalewhisper/web build`
• Removed tests/ directory from backend structure and added examples/ and scripts/

README.md


Grey Divider

Qodo Logo

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 8, 2026

Greptile Overview

Greptile Summary

This PR synchronizes the documentation (CONTRIBUTING.md and README.md) with the actual project configuration and current repository state.

Key Updates:

  • Version Requirements: Updated Python from 3.8+ to 3.10+ (matching backend/pyproject.toml), Node.js from 16+ to 20+, and pnpm from 8+ to 9.12.2
  • Repository URLs: Fixed all references from WhaleWhisper to whale-whisper (matching actual repository name)
  • Development Server: Corrected frontend port from 5173 to 5174 (matching vite.config.ts)
  • Backend Commands: Updated to use uv run uvicorn for consistency with recommended tooling
  • Project Structure: Updated directory tree to reflect current organization (frontend/apps/* and frontend/packages/*)
  • Contributors Badge: Fixed URL from base-nlp repository to whale-whisper
  • Testing Commands: Made test commands more specific and actionable
  • Security: Added security vulnerability reporting guidance (references existing .github/SECURITY.md)
  • PR Process: Changed from "Fill Out PR Template" to "Write a Clear PR Description" and removed deprecated pnpm run typecheck command

All changes are documentation-only updates that improve accuracy and align with the codebase reality. No functional code changes.

Confidence Score: 5/5

  • This PR is safe to merge - contains only documentation updates that align with actual codebase configuration
  • Score reflects that this is a documentation-only PR with no functional code changes. All updates correctly synchronize documentation with verified actual values (Python 3.10+ in pyproject.toml, port 5174 in vite.config.ts, pnpm 9.12.2 in package.json, correct repository URLs). The changes improve documentation accuracy and developer experience with no risk to functionality.
  • No files require special attention

Important Files Changed

Filename Overview
CONTRIBUTING.md Synchronized documentation with actual project configuration: updated Python version requirement (3.8+ → 3.10+), fixed repository URLs, corrected dev server port (5173 → 5174), updated backend commands to use uv run, improved frontend code organization guidance, and added security reporting section
README.md Aligned README with current project state: updated version requirements (Python 3.10+, Node.js 20+, pnpm 9.12.2), corrected frontend port (5173 → 5174), fixed repository URLs, updated project structure to reflect actual organization, and corrected contributors badge URL

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Repo as Repository
    participant CI as CI Environment
    participant Docs as Documentation
    
    Note over Dev,Docs: Documentation Sync Process
    
    Dev->>Repo: Check actual configuration
    activate Repo
    Repo-->>Dev: pyproject.toml (Python 3.10+)
    Repo-->>Dev: vite.config.ts (port 5174)
    Repo-->>Dev: package.json (pnpm 9.12.2)
    Repo-->>Dev: Repository URL (whale-whisper)
    deactivate Repo
    
    Dev->>Docs: Update CONTRIBUTING.md
    activate Docs
    Note right of Docs: - Python 3.8+ → 3.10+<br/>- Port 5173 → 5174<br/>- Add CI environment specs<br/>- Fix repository URLs<br/>- Update commands (uv run)<br/>- Add security section
    deactivate Docs
    
    Dev->>Docs: Update README.md
    activate Docs
    Note right of Docs: - Python 3.8+ → 3.10+<br/>- Node.js 16+ → 20+<br/>- pnpm 8+ → 9.12.2<br/>- Port 5173 → 5174<br/>- Fix URLs and badges<br/>- Update project structure
    deactivate Docs
    
    Dev->>CI: Submit PR to dev branch
    CI->>Docs: Validate documentation consistency
    CI-->>Dev: Documentation now matches actual config
Loading

@qodo-code-review
Copy link

Code Review by Qodo

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

Grey Divider


Action required

1. uv/venv launch mismatch 🐞 Bug ✓ Correctness
Description
• CONTRIBUTING.md documents both “use uv” and “traditional venv” backend setup flows, but the launch
  command was changed to uv run uvicorn ... unconditionally.
• Contributors who follow the traditional venv path (and don’t have uv installed) will hit a
  “command not found”/workflow dead-end when they reach the launch step.
• The repo already documents the correct split (uv run ... vs plain uvicorn ...) in
  backend/README.md, indicating both workflows are intended to be supported.
Code

CONTRIBUTING.md[97]

+uv run uvicorn app.main:app --reload --port 8090
Evidence
CONTRIBUTING.md includes two setup options (uv + traditional venv) but only one backend launch
command, which now requires uv. backend/README.md shows the project’s intended behavior: separate
launch instructions for uv vs pip/venv installs.

CONTRIBUTING.md[57-103]
CONTRIBUTING.md[379-425]
backend/README.md[65-78]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
CONTRIBUTING.md shows two backend setup options (using `uv` vs traditional `python -m venv`), but the backend launch command is now documented only as `uv run uvicorn ...`. This breaks the traditional venv workflow for contributors who don’t have `uv` installed.

### Issue Context
The repository already documents the correct dual-path approach in `backend/README.md` (use `uv run ...` for the `uv` path; use plain `uvicorn ...` for the pip/venv path). CONTRIBUTING.md should match that.

### Fix Focus Areas
- CONTRIBUTING.md[57-103]
- CONTRIBUTING.md[415-423]

### Suggested change
In both CN/EN sections, change the “Launch Dev Servers” backend block to something like:

- If using uv:
 - `uv run uvicorn app.main:app --reload --port 8090`
- If using traditional venv (after activating `.venv`):
 - `uvicorn app.main:app --reload --port 8090`

Optionally add a short note that `uv` must be installed if choosing the uv workflow.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

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

Grey Divider

Qodo Logo

```bash
# 后端(在 backend/ 目录)
uvicorn app.main:app --reload --port 8090
uv run uvicorn app.main:app --reload --port 8090

Choose a reason for hiding this comment

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

Action required

1. Uv/venv launch mismatch 🐞 Bug ✓ Correctness

• CONTRIBUTING.md documents both “use uv” and “traditional venv” backend setup flows, but the launch
  command was changed to uv run uvicorn ... unconditionally.
• Contributors who follow the traditional venv path (and don’t have uv installed) will hit a
  “command not found”/workflow dead-end when they reach the launch step.
• The repo already documents the correct split (uv run ... vs plain uvicorn ...) in
  backend/README.md, indicating both workflows are intended to be supported.
Agent Prompt
### Issue description
CONTRIBUTING.md shows two backend setup options (using `uv` vs traditional `python -m venv`), but the backend launch command is now documented only as `uv run uvicorn ...`. This breaks the traditional venv workflow for contributors who don’t have `uv` installed.

### Issue Context
The repository already documents the correct dual-path approach in `backend/README.md` (use `uv run ...` for the `uv` path; use plain `uvicorn ...` for the pip/venv path). CONTRIBUTING.md should match that.

### Fix Focus Areas
- CONTRIBUTING.md[57-103]
- CONTRIBUTING.md[415-423]

### Suggested change
In both CN/EN sections, change the “Launch Dev Servers” backend block to something like:

- If using uv:
  - `uv run uvicorn app.main:app --reload --port 8090`
- If using traditional venv (after activating `.venv`):
  - `uvicorn app.main:app --reload --port 8090`

Optionally add a short note that `uv` must be installed if choosing the uv workflow.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

gh can’t authenticate in this runner (Failed to log in… The token in GH_TOKEN is invalid.), so I can’t apply labels or post the review from here. The PR diff itself is docs-only and I didn’t find any documentation drift/inaccuracy after cross-checking against the repo config (Python >=3.10 in backend/pyproject.toml, Node 20/Python 3.11 in workflows, pnpm 9.12.2 in frontend/package.json, Vite port 5174 in frontend/apps/web/vite.config.ts).

REPO="datawhalechina/whale-whisper"
PR="25"

# Phase 2: size label (PR Size: S; 45+37=82 lines; 2 files)
gh pr edit "$PR" --repo "$REPO" --add-label "size/S"

# Phase 5: summary review (no inline comments; no issues >= 80 confidence)
SUMMARY=$(cat <<'MD'
## 🤖 Codex PR Review

No significant issues identified in this PR. Documentation updates align with the repository’s current CI/tooling configuration and the configured frontend dev server port.

### PR Size: S
- **Lines changed**: 82
- **Files changed**: 2

### 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*
MD
)

gh pr review "$PR" --repo "$REPO" --comment --body "$SUMMARY"

@FutureUnreal FutureUnreal merged commit 949fcbb into dev Feb 8, 2026
21 checks passed
@github-actions github-actions bot mentioned this pull request Feb 8, 2026
Merged
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Touches docs/README size/S PR size: < 200 lines changed type/docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant