#1218  Retrieve programming language of the repository via API
Andreas Wachter opened 1 year ago

Is there an API endpoint I can use to get the programming language of the repository?

Robin Shen commented 1 year ago

No API endpoint for that yet.

Robin Shen changed fields 1 year ago
Name Previous Value Current Value
Support Request
Unknown commented 1 year ago

This will not be as simple.

Onedev can't detect what programming language the codebase is, only what filetypes it detects.

It would have to return something like the percentage of filetype within the repository.

Matthias Gramberg commented 1 year ago

This is an issue at some Github repos, because it detects filetypes, who are not indicative as programming language.

Like md files, or configuration languages. So I wouldn't blindly copy their implementation.

Doing it by hand might be enough for most use cases.

One issue is, that some languages take spots, that other languages take too: Like .fs for forth and fsharp.

We can work around those issues, and I think it will be worth it.

The issue of percentages vs single API endpoint could be solved with one API endpoint for the dominant, and one for the second dominant?

Something like this.

issue 1 of 1
Issue Votes (0)
Watchers (5)
Please wait...
Page is in error, reload to recover