Add Incremental Diff File Fetching to the Diff Cache
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- backend-api-design, testing
Direção de pesquisa
Start with packages/core/src/review/diff-cache.ts and trace the full-diff path to find its file filtering and cache behavior. Check the ReviewGitProvider.getCompareDiff interface and the existing diff-cache tests, then add mocked-provider coverage for the new function. Done means it returns files changed between the supplied SHAs, applies the same reviewable-file filter, and follows the existing cache semantics.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Goal
Add getIncrementalDiffFiles to packages/core/src/review/diff-cache.ts that fetches the commit-to-commit diff instead of the full PR diff.
Background
ReviewGitProvider already exposes getCompareDiff(owner, repo, base, head), but it is only used for the dashboard diff viewer. This sub-issue wires that capability into the review diff path for incremental reviews.
This sub-issue is part of the parent issue: incremental reviews on synchronize events.
What to Build
- Add
getIncrementalDiffFilestodiff-cache.tsthat callsgithub.getCompareDiff(owner, repo, previousCommitSha, newHeadSha) - Apply the same reviewable-file filtering used by the full-diff path
- Respect the existing diff cache semantics so the incremental diff is cached the same way
- Include PR-level context handling notes: the caller still needs PR title, description, and suppressed findings (handled in the wiring sub-issue)
Done When
-
getIncrementalDiffFilesreturns only files changed between the two SHAs - Reviewable-file filtering matches the full-diff path behavior
- Caching behaves consistently with the existing diff cache
- Unit tests cover the new function with a mocked git provider
-
npm run typecheck,npm test, andnpm run lintall pass
- Linguagem predominante
- TypeScript
- Estrelas
- 125
- Forks
- 23
- Merge médio
- 2d 13h
- PRs com merge (30d)
- 12
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de devarshishimpi/codra
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
devarshishimpi/codra#178 ·
Mantenedores costumam responder em até 1 dia
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
devarshishimpi/codra#176 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
devarshishimpi/codra#186 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
devarshishimpi/codra#185 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
devarshishimpi/codra#184 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de devarshishimpi/codra
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 83/100
gofish-graphics/gofish-graphics#1384 ·
Mantenedores costumam responder em até 1 dia
-
adapter bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Olanetsoft/agent-lookout#353 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
vicharanashala/vibe#1542 ·
Mantenedores costumam responder em até 1 dia
-
bug chore P2 size:XS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
josephfung/curia#2666 ·
Mantenedores costumam responder em até 1 dia
-
area: batch
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
inabagumi/shinju-date#7294 ·
Mantenedores costumam responder em até 1 dia