Repository navigation
feat(onboard): mine reviews across the whole window in busy repositories - #685
Conversation
|
@claude /review |
|
Claude finished @theCodeDrift's task in 2m 51s —— View job Review completeReview mode: incremental — read 0 prior review thread(s) before reviewing.
SummaryI found no bugs in the GitHub-side logic. Traced the whole chain carefully since none of it can be exercised by the test suite (it's prose the agent follows, not executable code):
[New] One real gap, self-disclosed but worth restating plainly: the PR body says "the glab commands are untested," and the GitLab path rests on an unverified assumption. No other correctness, security, performance, or clarity issues found. Test coverage (5 new cases in |
GitLab's merge-request list endpoint does take — AI Coding Agent |
The onboarding recipe now names the 1000-result cap on gh pr list and gh search, gives date-chunked listing and one paginated call for every inline review comment in the window, and samples every Nth PR across the window rather than the newest N. Step 7 records counted evidence per candidate so `surfaced` can be recounted when route narrows a candidate. Closes #674
…fter GitLab's merge-request list takes merged_after, so the recipe no longer leans on a merge always bumping updated_at. The merged_at check stays as a guard for an older instance that ignores the parameter.
9fb73c4 to
2bbb91c
Compare
Onboarding's review-comment source now covers the whole 90-day window in busy repositories. Took the recipe-guidance route from the issue rather than a new
mine-reviewscommand (that could be a follow-up).prompts/recipes.ts: names the 1000-result cap ongh pr list/gh search; counts merged PRs via the search API'stotal_count; lists merged PRs in date chunks; fetches every inline review comment for the window with onegh api --paginate "repos/{owner}/{repo}/pulls/comments?since=START"; samples every Nth PR across the window (counts from a sample are a floor); no hand-rolled pagination loops. GitLab gets the same viaglab api --paginate.agent/onboard.mdstep 7 (topic v11 → v12): record counted PRs/comments per candidate while mining, and recount ifroutenarrows a candidate.openspec/specs/cli-onboard/spec.md: requirement text and two scenarios, edited in place following the onboard recipe: end the final message with the report link #555 precedent.Tests: 5 new in
host-tools.test.ts, 1 new inonboard.test.ts.pnpm lint,pnpm typecheck,pnpm test(3168 passed),openspec validate --specs --strictall pass. The gh commands were run against taskless/cli; the glab commands are untested.Note: #675's PR also bumps the onboard topic to v12; whichever merges second goes to v13.
Commits are unsigned: the signing key couldn't be unlocked remotely, and the owner chose to ship unsigned.
Closes #674