Collapse generated files on GitHub
use
.gitattributes
https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
e.g.
code:.gitattributes
gen/**/*.go linguist-generated