Add Incremental Diff File Fetching to the Diff Cache

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

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.

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

説明

enhancement good first issue

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 getIncrementalDiffFiles to diff-cache.ts that calls github.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

  • getIncrementalDiffFiles returns 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, and npm run lint all pass
主要言語
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 を短くまとめたダイジェスト。