Repository navigation
fix(desktop): show a pull request's added, deleted and renamed files in Review - #4420
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Review's PR #N source now reads the diff with
pullDiffFiles(the parser the pull request Diff tab already uses) instead of marking every fileM. Added, deleted and renamed files show A, D and R. A rename showsold → newin the file header and the tree tooltip, and a binary file says "A binary file: no lines to show." The Uncommitted and Branch sources also pass the old path and binary flag thatgit_changesalready reports.Changelog
Review shows a pull request's added, deleted, renamed and binary files as such, matching the pull request's Diff tab.
Testing
bun run check.feat/desktop-tauri-harnessesformock-thread-1and opened Review › PR feat(desktop): add the Tauri desktop app and external harnesses #2788. The tree readsM icon.png ; A models.ts +450 ; R draft.ts +2 −1 ; M Composer.tsx +5 −2. The rename's header is…/drafts.ts → …/draft.ts, and icon.png shows the binary text.Closes #4394