Skip to content

Mark generated files as linguist-generated#4536

Open
Okabe-Junya wants to merge 1 commit into
actions:masterfrom
Okabe-Junya:Okabe-Junya/chore/mark-generated-files
Open

Mark generated files as linguist-generated#4536
Okabe-Junya wants to merge 1 commit into
actions:masterfrom
Okabe-Junya:Okabe-Junya/chore/mark-generated-files

Conversation

@Okabe-Junya

Copy link
Copy Markdown
Contributor

What

  • Add .gitattributes rules that mark machine-generated files as
    linguist-generated=true

@Okabe-Junya Okabe-Junya marked this pull request as ready for review June 19, 2026 13:29
Copilot AI review requested due to automatic review settings June 19, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Ready to approve

The added .gitattributes patterns match existing generated files in the repo and do not change runtime behavior.

Note: this review does not count toward required approvals for merging.

Pull request overview

Adds GitHub Linguist attributes to classify common machine-generated artifacts in this repo as generated, keeping language stats and diffs focused on hand-written source.

Changes:

  • Mark controller-gen deepcopy outputs (zz_generated.deepcopy.go) as linguist-generated=true.
  • Mark mockery-generated test mocks (mocks_test.go) as linguist-generated=true.
  • Mark generated Kubernetes/Helm manifests (CRDs, RBAC, webhook, chart CRDs) as linguist-generated=true.
File summaries
File Description
.gitattributes Adds Linguist rules for known generated Go/YAML outputs (deepcopy, mockery, CRDs/manifests) so they’re treated as generated by GitHub.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants