{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/3665","repository_url":"https://api.github.com/repos/github/linguist","labels_url":"https://api.github.com/repos/github/linguist/issues/3665/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/3665/comments","events_url":"https://api.github.com/repos/github/linguist/issues/3665/events","html_url":"https://github.com/github/linguist/issues/3665","id":233592545,"node_id":"MDU6SXNzdWUyMzM1OTI1NDU=","number":3665,"title":"lingust-language=xyz appears to be ignored on github if 'xyz' is not a known language. Proposal: make it appear as unknown language","user":{"login":"JonasT","id":1573352,"node_id":"MDQ6VXNlcjE1NzMzNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1573352?v=4","gravatar_id":"","url":"https://api.github.com/users/JonasT","html_url":"https://github.com/JonasT","followers_url":"https://api.github.com/users/JonasT/followers","following_url":"https://api.github.com/users/JonasT/following{/other_user}","gists_url":"https://api.github.com/users/JonasT/gists{/gist_id}","starred_url":"https://api.github.com/users/JonasT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonasT/subscriptions","organizations_url":"https://api.github.com/users/JonasT/orgs","repos_url":"https://api.github.com/users/JonasT/repos","events_url":"https://api.github.com/users/JonasT/events{/privacy}","received_events_url":"https://api.github.com/users/JonasT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-06-05T13:45:05Z","updated_at":"2018-11-06T07:14:22Z","closed_at":null,"author_association":"NONE","body":"lingust-language=xyz appears to be ignored on github if xyz is not a known language. Of course at a first glance, this seems like very reasonable behavior. I'm also not saying it's a bug, but it might be something which I suggest is worth changing:\r\n\r\nYour policy for inclusion of a language into linguist is `we prefer that each new file extension be in use in hundreds of repositories before supporting them in Linguist` - which is very reasonable, otherwise you'd have hundreds of obscure languages that die after a few months piled up in your language files. However, this means that for small new language projects, the statistics of what they are written in might be *grossly* incorrect without any indication of that in the UI.\r\n\r\nTherefore I suggest the following:\r\n\r\n\"*.myl linguist-language=my-language\" in `.gitattributes` for an unknown `my-language` should result in a stats entry of \"Unknown language\" for all `.myl` files in the repository. This gives any reader of the stats an indication that there is a language involved that github doesn't know, while avoiding the pitfalls of not having a proper language color, syntax highlighting, language id or all the other things that are not available because the language isn't actually in `lib/linguist/languages.yml`."},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/436153389","html_url":"https://github.com/github/linguist/issues/3665#issuecomment-436153389","issue_url":"https://api.github.com/repos/github/linguist/issues/3665","id":436153389,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjE1MzM4OQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-06T07:14:22Z","updated_at":"2018-11-06T07:14:22Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had activity in a long time. If this issue is still relevant and should remain open, please reply with a short explanation (e.g. \"I have checked the code and this issue is still relevant because ___.\"). Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}