Add actionable commands to pull request comments

Aberta
#152 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github, typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
125
Forks
23
Merge médio
2d 13h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de devarshishimpi/codra

Todas as issues de devarshishimpi/codra

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.