Skip to content

Add .gitattributes to collapse vendor in diff - #3984

Open
tmshort wants to merge 1 commit into
operator-framework:masterfrom
tmshort:add-gitattrib
Open

tmshort wants to merge 1 commit into
operator-framework:masterfrom
tmshort:add-gitattrib

Conversation

@tmshort

@tmshort tmshort commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

This causes github to collapse vendor files in the diff

See:
https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

Summary by CodeRabbit

  • Chores
    • Updated how third-party bundled files are categorized in repository language statistics. This change affects repository presentation only; it does not change the app’s features or behavior.

This causes github to collapse vendor files in the diff
@openshift-ci
openshift-ci Bot requested review from fgiudici and grokspawn December 3, 2026 16:08
@openshift-ci

openshift-ci Bot commented Dec 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign joelanford for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The .gitattributes file now marks files under any vendor directory as generated for GitHub Linguist.

Changes: Vendor file classification

Layer / File(s) Summary
Add generated-file attribute
.gitattributes
Adds a Linguist attribute that marks files matching **/vendor/** as generated.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: rashmigottipati

Merge Risk: Minimal · up to 1d667

This change only makes GitHub collapse vendor files in diffs. It has no effect on application behavior and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Add .gitattributes to collapse vendor in diff" matches the only change in the changeset. The PR adds a .gitattributes entry that marks files under any vendor directory as generated, so GitH…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "Add .gitattributes to collapse vendor in diff" matches the only change in the changeset. The PR adds a .gitattributes entry that marks files under any vendor directory as generated, so GitHub collapses them in diffs. The title names the file, the action, and the effect. It is short and specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 818237f and 1d667e4.

Files selected for processing: 1

  • .gitattributes

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

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