Skip to content
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

Hide auto-generated files in code reviews and format Dockerfile templates #2062

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

LaurentGoderre
Copy link
Member

No description provided.

Comment on lines +3 to +4
/*/**/docker-entrypoint.sh linguist-generated
/Dockerfile*.template linguist-language=Dockerfile
Copy link
Member

Choose a reason for hiding this comment

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

The changes look great overall and will help reviewers focus on the essential parts of the code.

One minor thing: the last line change about .template files seems unrelated to the PR title and description. Perhaps we could tweak the commit message and PR title and description slightly to fully encompass this change as well.

Other than that, I have no concerns. Let me know what you think!

Copy link
Member

Choose a reason for hiding this comment

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

A second thought: sometimes, we may still check the generated files to ensure effective changes. Would that be affected if we want to do so? Like, be difficult?

Copy link
Member Author

Choose a reason for hiding this comment

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

It just hides it by default but you can still reveal it (a bit like a file that has too many diff). This would be helpful for bot generated PR.

@PeterDaveHello PeterDaveHello requested a review from a team April 6, 2024 18:12
@nschonni
Copy link
Member

nschonni commented Apr 7, 2024

The description is missing, but I think I saw some comment on the other tread. If this auto-collapses the files in the review tab, I'm -0. Yes, they are generated, but we need to check that things like the hashes aren't missing, or if someone isn't manually making a change.
If the auto-generation happened to this files after a PR was opened, I think this would make sense though.

@LaurentGoderre LaurentGoderre changed the title Hide auto-generated files in code reviews Hide auto-generated files in code reviews and format Dockerfile templates Apr 8, 2024
Copy link
Member

@PeterDaveHello PeterDaveHello left a comment

Choose a reason for hiding this comment

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

Let's give it a try.

@PeterDaveHello PeterDaveHello merged commit 3392c8a into nodejs:main Apr 8, 2024
1 check passed
@LaurentGoderre LaurentGoderre deleted the hide-auto-generated branch April 9, 2024 14:48
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