Repository navigation
docs: give new contributors a first-issue path and focused checks - #453
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 59 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughContributor documentation now includes focused verification commands, expanded test guidance, formatting and visual-baseline requirements, and links to open beginner-friendly issues. ChangesContributor guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CONTRIBUTING.md`:
- Around line 80-85: Update the “CLI or tooling (`tools/payload-components`,
`bin/`)” row in the checks table to explicitly include `pnpm test:pack` when the
change affects `bin/`, packaging, or the published CLI, while preserving the
existing checks for other tooling changes.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3c0c451d-0e2e-4afb-be54-6e03131d6306
📒 Files selected for processing (2)
CONTRIBUTING.mdREADME.md
| | Change type | Run | | ||
| | ------------------------------------------------------ | ------------------------------------------------------------------------------- | | ||
| | Docs or content only (`content/docs`, `*.md`) | `pnpm source:build`, `pnpm run test:int` | | ||
| | Site UI (`src/app`, `src/components`, `src/lib`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int`, `pnpm run test:e2e` | | ||
| | Registry or component metadata (`payload-components/`) | `pnpm test:registry`, `pnpm run test:int` | | ||
| | CLI or tooling (`tools/payload-components`, `bin/`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int` | |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
Clarify the packed CLI check for bin/ changes.
The table presents these commands as the smallest checks that cover the change, but pnpm run test:int does not include pnpm test:pack. The later guidance requires pnpm test:pack for bin/, packaging, and published CLI changes. Make that condition explicit in this row so contributors do not stop after the table.
Suggested clarification
-| CLI or tooling (`tools/payload-components`, `bin/`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int` |
+| CLI or tooling (`tools/payload-components`, `bin/`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int`; add `pnpm test:pack` for `bin/`, packaging, or published CLI changes |📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | Change type | Run | | |
| | ------------------------------------------------------ | ------------------------------------------------------------------------------- | | |
| | Docs or content only (`content/docs`, `*.md`) | `pnpm source:build`, `pnpm run test:int` | | |
| | Site UI (`src/app`, `src/components`, `src/lib`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int`, `pnpm run test:e2e` | | |
| | Registry or component metadata (`payload-components/`) | `pnpm test:registry`, `pnpm run test:int` | | |
| | CLI or tooling (`tools/payload-components`, `bin/`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int` | | |
| | Change type | Run | | |
| | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | |
| | Docs or content only (`content/docs`, `*.md`) | `pnpm source:build`, `pnpm run test:int` | | |
| | Site UI (`src/app`, `src/components`, `src/lib`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int`, `pnpm run test:e2e` | | |
| | Registry or component metadata (`payload-components/`) | `pnpm test:registry`, `pnpm run test:int` | | |
| | CLI or tooling (`tools/payload-components`, `bin/`) | `pnpm lint`, `pnpm exec tsc --noEmit`, `pnpm run test:int`; add `pnpm test:pack` for `bin/`, packaging, or published CLI changes | |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@CONTRIBUTING.md` around lines 80 - 85, Update the “CLI or tooling
(`tools/payload-components`, `bin/`)” row in the checks table to explicitly
include `pnpm test:pack` when the change affects `bin/`, packaging, or the
published CLI, while preserving the existing checks for other tooling changes.
Closes #100 and #101. README pointed newcomers at CONTRIBUTING, the CoC, SECURITY, and the roadmap, but nothing told them which open work was actually approachable. Add label searches rather than issue numbers so the lists stay accurate as issues land. CONTRIBUTING told contributors to "run the focused checks that match your change" and then listed all seven commands, which is the opposite of focused. Add a table mapping the four common change types to the smallest checks that still cover them, and keep the full list intact below it as the broader suite. Every command named already exists in package.json; no new scripts. Co-Authored-By: Claude Opus 5 <[email protected]>
Review of the table caught two rows prescribing checks that do not cover their own change type. The CLI row said `pnpm test:install`, which runs four specs — but more than thirty int specs import tools/payload-components. The very next PR in this series touched only project.ts and turned blog-visual-system, fragment, and target-detection red, none of which test:install runs. A contributor following that row would have gone green locally and red on CI, which is the failure this table exists to prevent. The Site UI row omitted test:int, but fumadocs-site.int.spec.ts imports SiteFooter and asserts on its rendered output, and the catalog count pins live there too. Both now run test:int, with a note on why it appears three times and what test:install is actually good for. Co-Authored-By: Claude Opus 5 <[email protected]>
`pnpm run test:int` appears in all four rows of the table, not three. Replace the hedge with the actual figures: 32 of the 46 int specs import the CLI, which is the reason the suite is unavoidable whatever you touched. Co-Authored-By: Claude Opus 5 <[email protected]>
3d4569c to
e7f3fac
Compare
Closes #100. Closes #101.
Two small docs gaps that both cost a new contributor their first ten minutes.
README — first-issue path (#100)
The
## Contributingsection linked CONTRIBUTING, the CoC, SECURITY, and the roadmap, but nothing pointed at work that was actually approachable. Added two label searches near the top of that section.Both use GitHub issue searches rather than hard-coded issue numbers, so they stay accurate as issues land. Setup and PR instructions are unchanged.
CONTRIBUTING — focused checks table (#101)
## Verificationsaid "run the focused checks that match your change" and then listed all seven commands — which gives a first-time contributor no way to pick. Added a table covering the four change types the issue asks for, and kept the full list intact below it under a### Full suiteheading.pnpm source:build,pnpm run test:intpnpm lint,pnpm exec tsc --noEmit,pnpm run test:e2epnpm test:registry,pnpm run test:intpnpm lint,pnpm exec tsc --noEmit,pnpm test:installPlus two rules that apply to every row:
pnpm formatbefore pushing (CI runsformat:check), and a pointer to the existing Visual baselines section for anything that changes what a page renders — the trap most likely to bite someone who only ran their row.No new scripts, tooling, or dependencies.
Verification
pnpm run test:int— 505 passed, 1 skipped, 44 files. Coversinventory-sync.int.spec.ts, which pins the README's COMPONENT-INVENTORY table; this change sits outside those markers.pnpm format:check— clean repo-wide.pnpm source:build— clean.package.json.pnpm exec tsc --noEmitis a direct invocation, consistent with the existing full list.Docs-only, so no visual baselines are involved.
Note for the maintainer
After this merges,
good first issuewill be empty — #100 and #101 were the only two issues carrying that label. The README link will point at a blank list until a few more issues are labelled. From the current backlog, #121 is a good candidate: its two required tests already exist inpayload-components-fragment.int.spec.ts, so the work is scoped to enriching three error strings.🤖 Generated with Claude Code
Summary by CodeRabbit