Add actionable commands to pull request comments

オープン
#152 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, typescript

調査の方向性

Start with the pull request comment handler that turns configured mentions into review jobs, then read the existing review category and repository settings code. Issues #155 and #156 split command parsing and finding responses into separate work; inspect those before choosing a slice. Done means supported commands and invalid-command replies work with configured mentions, existing full reviews still work, and tests, docs, typecheck, and lint cover the changed behavior across affected runtimes.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

Goal

Let developers ask Codra to do different things from a pull request comment. Today, a new comment that contains the configured Codra mention starts the same full review, regardless of the rest of the comment.

What should change

Support a small set of clear commands after the configured mention:

  • @codra-app review starts a full review.
  • @codra-app review focus correctness reviews one supported category. The user can choose any category Codra already supports.
  • @codra-app explain <finding> explains a finding.
  • @codra-app address <finding> suggests a way to fix a finding in a reply.

The examples use @codra-app, but commands must also work with the mention trigger configured for that repository. The address command suggests a change only. Codra must not edit files, push commits, or make changes to a branch.

Current behavior and context

Codra handles GitHub pull request comments and turns a matching mention into a review job. It does not currently interpret command words after the mention. Review categories and repository settings already exist, so reuse those instead of adding a new category or a separate security command.

Work breakdown

Done when

  • Supported commands are recognized after the repository's configured mention.
  • Existing mention based full reviews continue to work.
  • Invalid or incomplete commands receive a short, useful response.
  • The commands and examples are documented.
  • Tests cover command parsing and the resulting behavior.

Before closing

  • npm run typecheck, npm test, and npm run lint all pass.
  • Any backend changes work in both Cloudflare Workers and Node/Docker.
  • Tests cover the changed behavior in each affected runtime.
主要言語
TypeScript
スター
125
フォーク
23
平均マージ
2日 13時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

devarshishimpi/codra のほかの issue

devarshishimpi/codra の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。