request: Option to specify primary programming language of each repo #188985
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I've run into this too. The current workaround is using a Or to mark entire directories as documentation/vendored: This tells Linguist to ignore those files when calculating the primary language. For your Java project with JSON fixtures, you'd mark the It's not a UI toggle, but it's the official way to override the detection per-repo. You commit this file and GitHub re-analyzes within minutes. If your issue is with vendor dependencies (like There's no other repo-level setting in GitHub's UI for this yet. The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
GitHub automatically uses Linguist to assign a programming language description to each repository.
However, this often results in misleading labels.
For example, a Java project that happens to have a high sloccount of JSON fixtures, ends up labelled primarily a "JSON" project.
For example, a Ruby project with a collection of shell scripts for deployment, is mislabelled as a "Shell" project.
For example, a Go project with some cGo third party dependencies tracked in
vendor, is mislabelled as "C" or "C++".For example, a project building Docker images that delegates to shell scripts, in order to lint, SAST, and stylize the provisioning code for safety and security, ends up with a "Shell" label.
Please add a repo level option to override the Linguist project programming language label.
Beta Was this translation helpful? Give feedback.
All reactions