feat: add create-pr-review tool #99
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pr-review-tool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@llm-bot can you review the PR?
Disregard the unused functions for the pr review since they will be used for future purposes
Great work on this PR! Here's my review:
✅ What looks good
createPrReviewtool — Well-structured and properly maps the tool parameters to the Forgejo API. Thesidefield handling (BASE vs HEAD) correctly translates toold_position/new_position.Parameter renaming — Renaming
issueNumber/prNumbertoissueId/prIdacrosscontext.ts,forgejo/index.ts, andschemas.tsis a good consistency improvement. The API uses numeric IDs, not GitHub-style issue numbers.Shared
issueStateSchema— Extracting the common state union into a reusable constant avoids duplication betweenissueSchemaandpullRequestSchema.Tool renaming — Renaming
createPullRequest→createPris consistent with the shorter naming pattern used by other tools (closeIssue,createIssue, etc.).Prompt update — Correctly updated to reference the new
create-pr-reviewtool name.🔧 Minor fix applied
I fixed two
useImportTypelint warnings insrc/forgejo/index.ts:StaticParse→type StaticParseprReviewEventSchema→type prReviewEventSchema(only used intypeoftype context)📝 Notes
getPrReviews,getPrReview,getPrReviewComments,postPrReviewComment) are unused as you mentioned — they're ready for future use.prReviewCommentSchemaonly hasbodywhich is fine for the response parsing.Overall: LGTM 🚀