Add .gitattributes file with Git-style path matchers customizing how PR changed files appear on GitHub#6940
Merged
openshift-merge-robot merged 1 commit intoredhat-developer:mainfrom Jun 28, 2023
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! |
feloy
approved these changes
Jun 28, 2023
Contributor
|
/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 DetailsIn 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. |
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 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
.gitattributesfile.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-generatedattribute 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: