-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .gitattributes
file with Git-style path matchers customizing how PR changed files appear on GitHub
#6940
Conversation
…hanged files appear on GitHub This should make it easier to review large PRs with a lot of changes from certain files (like in `**/vendor/**`), by hiding them by default.
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
Kudos, SonarCloud Quality Gate passed! |
/override NoCluster-Integration-tests/NoCluster-Integration-tests /override OpenShift-Integration-tests/OpenShift-Integration-tests Not related |
@feloy: Overrode contexts on behalf of feloy: NoCluster-Integration-tests/NoCluster-Integration-tests, OpenShift-Integration-tests/OpenShift-Integration-tests In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind task
What does this PR do / why we need it:
GitHub UI is terribly slow when reviewing/commenting on PRs that contain a lot of changes in the vendored directories, like in #6937
As suggested in [1], we can keep certain files from displaying in diffs by default, by using a standard
.gitattributes
file.This should make it easier to review large PRs with a lot of changes from certain files (like in
**/vendor/**
), by hiding them by default.[1] https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github f
This is how matching files would appear if
linguist-generated
attribute istrue
; so it will still be possible to show the diff on demand if needed:Which issue(s) this PR fixes:
—
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: