Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [API] export repo-language info #10232

Closed
6543 opened this issue Feb 11, 2020 · 4 comments · Fixed by #11737
Closed

[Feature] [API] export repo-language info #10232

6543 opened this issue Feb 11, 2020 · 4 comments · Fixed by #11737
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@6543
Copy link
Member

6543 commented Feb 11, 2020

since #8037 created LanguageStat's for each repo ... get this info via API too

@6543
Copy link
Member Author

6543 commented Feb 11, 2020

github has:

@techknowlogick techknowlogick added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Feb 12, 2020
@lafriks
Copy link
Member

lafriks commented Mar 22, 2020

It's not really possible to do that currently as bytes for each language are not really saved to database only percentage

@lunny
Copy link
Member

lunny commented Mar 22, 2020

Why not that API display number of files or lines but bytes? Is that meaningful?

@lafriks
Copy link
Member

lafriks commented Mar 22, 2020

Because percent is calculated without loading all file from git, just by detecting file size so that is faster as to detect line count

@lafriks lafriks added this to the 1.13.0 milestone Jun 2, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants