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

Closed
opened 2025-11-02 06:04:18 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @6543 on GitHub (Feb 11, 2020).

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

Originally created by @6543 on GitHub (Feb 11, 2020). since #8037 created `LanguageStat`'s for each repo ... get this info via API too
GiteaMirror added the type/featuretype/proposal labels 2025-11-02 06:04:18 -06:00
Author
Owner

@6543 commented on GitHub (Feb 11, 2020):

github has:

@6543 commented on GitHub (Feb 11, 2020): github has: * https://developer.github.com/v3/repos/#list-languages and export main language via `"language": null,` json enty on repo-responce
Author
Owner

@lafriks commented on GitHub (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

@lafriks commented on GitHub (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
Author
Owner

@lunny commented on GitHub (Mar 22, 2020):

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

@lunny commented on GitHub (Mar 22, 2020): Why not that API display number of files or lines but bytes? Is that meaningful?
Author
Owner

@lafriks commented on GitHub (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 commented on GitHub (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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4836