Repository navigation
docs: add contributing guide - #4
Conversation
TrivCodez
left a comment
There was a problem hiding this comment.
CONTRIBUTING.md review
The guide covers all the major areas a new contributor needs — prerequisites, local setup, project structure, workflows, code style, testing, and issue reporting. The project structure section accurately reflects the current codebase layout, and the security reminders about not committing secrets are clear and well-placed.
A few areas that could be tightened up:
Commit message language — The commit message is in Chinese (新增贡献指南文档). Since this is an English-language project, commit messages should be in English to keep the log consistent. For squash-merging this PR, the title/message can be adjusted at merge time, but worth keeping in mind for future commits.
cp .env.example .env # if an example file is added later — This instruction tells someone to copy a file that doesn't exist yet. Either add the .env.example as part of this PR (even if it's just a template), or just document the variables inline without referencing a file that isn't there. As written, it reads like a TODO that made it into the docs.
Branch naming example in the PR process section — Step 2 uses git checkout -b docs/contributing-guide, which is this PR's branch name. A generic placeholder like git checkout -b fix/short-description or git checkout -b my-feature would be more helpful and avoid the self-reference.
~/.npmrc with >> appending — The guide appends GitHub Packages config to the user's global .npmrc using >>. This will create duplicate lines if the commands are run more than once. Consider either using > (overwrite) with the full block, suggesting a project-level .npmrc file instead, or using grep/contains guard logic. A project .npmrc checked into the repo (containing just the registry scope) would also simplify setup for contributors.
NEON_PROJECT_ID can be set via CLI — The guide shows NEON_PROJECT_ID=your-neon-project-id as an environment variable, which is correct. It's worth noting alongside the auth commands that npm run dev -- auth set-project <project-id> persists the project ID to config, so the env var is only needed if you prefer not to persist it.
CLI version in bug reports — The issue template requests Node.js/npm versions but doesn't ask for the CLI version itself. Adding npx @in3pire/db --version (or equivalent) to the issue template would help triage.
None of these are blockers — the guide is solid overall and gives contributors a clear on-ramp. The structure and technical accuracy are the important parts, and those are right.
TrivCodez
left a comment
There was a problem hiding this comment.
All points from the previous review have been addressed:
- Branch naming example uses
fix/short-description— no longer self-referential. .env.examplereference removed — no dangling file reference..npmrcsetup uses a project-level file withcat > .npmrc— no global config duplication.- CLI version included in issue template checklist.
- NEON_PROJECT_ID persistence noted alongside env variable setup.
The guide is comprehensive and accurate. Ready to merge.
Summary
Validation