Skip to content

fix(preview): show provider-excluded diffs - #1223

Merged
lizhengfeng101 merged 3 commits into
alibaba:mainfrom
CowToTheSky:fix/preview-provider-exclusions
Sep 14, 2026
Merged

lizhengfeng101 merged 3 commits into
alibaba:mainfrom
CowToTheSky:fix/preview-provider-exclusions

Conversation

@CowToTheSky

@CowToTheSky CowToTheSky commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Preserve provider-directory exclusions for Preview reporting without retaining their full diff payload during normal reviews.
  • Report those files as provider_directory exclusions, distinct from include-overridable default_path exclusions.
  • Keep normal review behavior unchanged: files under vendor/ remain unreviewed.

Refs #1197

Validation

  • make check
  • make test
  • Manually verified review --preview --format json with a tracked modified file under vendor/.

AI disclosure

This PR was developed with assistance from OpenAI Codex (GPT-6). I reviewed the implementation and validation results and take responsibility for the changes.

@CLAassistant

CLAassistant commented Sep 12, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s).

@CowToTheSky
CowToTheSky force-pushed the fix/preview-provider-exclusions branch from d3f4497 to 70d02f5 Compare September 12, 2026 18:08
@lizhengfeng101

Copy link
Copy Markdown
Contributor

Nit: filterDiffs no longer has any callers now that GetDiff goes through GetDiffSet/partitionDiffs — worth deleting it as dead code before merge.

Comment thread internal/diff/git.go Resolved

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job

@lizhengfeng101
lizhengfeng101 merged commit 3bce7ad into alibaba:main Sep 14, 2026
15 checks passed
Githab-capibara added a commit to Githab-capibara/open-code-review that referenced this pull request Sep 17, 2026
* fix(preview): show provider-excluded diffs

* fix(preview): refine provider exclusions

* feat: Apply suggestion from @lizhengfeng101

---------

Co-authored-by: Kite <[email protected]>
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.

3 participants