Parse review commands and support category focused reviews

未关闭
#155 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
github, node.js, typescript

调研方向

Trace how GitHub comments are normalized and mention comments become review requests, then find the existing review category definitions and review configuration. Keep parsing in shared code used by Workers and Node/Docker. Done means both command forms and the existing default mention work, invalid commands receive a reply without starting a review, syntax is documented, and the requested checks pass.

由索引模型根据 Issue 内容生成。

描述

enhancement good first issue help wanted

Goal

Parse review commands in pull request comments and let a developer request either a full review or a review focused on one of Codra's existing review categories.

Current behavior

Codra starts a mention triggered review when a new pull request comment contains the repository's configured mention. The text after the mention is not parsed, so every matching comment starts the same kind of review.

What to build

  • Recognize review as a request for the existing full review behavior.
  • Recognize review focus <category> and pass the selected category into the review request.
  • Accept only categories Codra already supports. Do not add new review categories or a category specific command.
  • Use the repository's configured mention trigger, not a hard coded @codra-app string.
  • Return a concise reply when a command is incomplete or the category is unsupported.
  • Keep existing mention behavior working for users who do not include a command.

Implementation guidance

Start by tracing how GitHub comments are normalized and how mention comments become review requests. Reuse the existing review category definitions and review configuration. Keep command parsing in shared code where both runtime deployments can use it. Do not duplicate behavior separately for Workers and Node/Docker.

Done when

  • Full review and category focused review commands work.
  • Existing mention requests still start a full review.
  • Unsupported or incomplete commands receive a clear reply and do not start an unintended review.
  • Tests cover the default mention, a configured custom mention, each command form, and invalid input.
  • The supported syntax is documented with examples.
  • Any backend changes work in both Cloudflare Workers and Node/Docker.
  • npm run typecheck, npm test, and npm run lint all pass.
主要语言
TypeScript
星标
125
派生
23
平均合并
2 天 13 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

devarshishimpi/codra 的其他 Issue

查看 devarshishimpi/codra 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。