Add .gitattributes to fix language stats bar #16354
Conversation
|
Hi @abhishekjiitr. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com>
472c63a
to
a5ba645
Compare
|
/assign @prydonius |
|
Oh nice, thanks @abhishekjiitr! I'm wondering if it makes sense to have the .tpl files recognised as Go or YAML instead of Text? WDYT? |
|
I think Go makes more sense because the The Github Linguist doesn't support specifying YAML though. The complete list of languages supported by it can be found here. |
|
Hmm it does look like YAML is in that list: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml#L5864. But yes, I agree Go makes more sense, though I'm not sure if Linguist understands Go templates and if it will be able to highlight them properly, in any case I don't think it matters for the stats bar. |
Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com>
74a690a
to
a733843
Compare
|
Added commit to recognize |
|
thanks! /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhishekjiitr, prydonius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Add .gitattributes to fix language stats bar Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com> * Mark TPL Extension as Go Code Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com>
* Add .gitattributes to fix language stats bar Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com> * Mark TPL Extension as Go Code Signed-off-by: Abhishek Jaisingh <abhi2254015@gmail.com>


What this PR does / why we need it:
Fixes the Github Language stats bar, in which currently language of files with extension
tplare being recognised as Smarty, which are actually just text files. It makes the smarty files being shown as 86.7% of the codebaseAfter the commit, the text files are ignored in the final stats by Github Linguist: