Skip to content

feat: add diff stats and patch content for local pull requests#902

Merged
shyim merged 1 commit intomainfrom
feat/local-pull-request-diff-stats
Mar 20, 2026
Merged

feat: add diff stats and patch content for local pull requests#902
shyim merged 1 commit intomainfrom
feat/local-pull-request-diff-stats

Conversation

@shyim
Copy link
Owner

@shyim shyim commented Mar 20, 2026

Summary

  • Parse git diff --numstat to populate additions, deletions, and changes on LocalFile, matching the data already available from GitHub and GitLab APIs
  • Parse git diff unified output to populate the patch property on LocalFile
  • Add comprehensive tests covering added, modified, and deleted files, including multiline changes

Test plan

  • All 9 tests in LocalPullRequestTest pass (63 assertions)
  • Verified additions/deletions/changes counts for added, modified, and deleted files
  • Verified patch content contains expected hunks for modified and deleted files

Populate additions, deletions, changes and patch content on LocalFile
by parsing git numstat and unified diff output, bringing local PR
structs to parity with GitHub and Gitlab implementations.
@shyim shyim merged commit 8f220a0 into main Mar 20, 2026
7 checks passed
@shyim shyim deleted the feat/local-pull-request-diff-stats branch March 20, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant