我正在尝试找出在 Azure Devops 存储库中使用了哪些编程语言。 GitHub 有一个 很好的 API,可以获取这些信息。他们在底层使用了 Linguist,非常适合我的需要。 当您查看 Azure Devops 中的仪表板时,您可以看到存储库中使用的语言。 是否有人知道如何计算此数据并通过 REST API 获取该数据? 谢谢
在项目摘要页面上,我们仅显示前三种语言,其中最低语言百分比为10。您可以通过调用此API获取有关语言的详细信息: https://dev.azure.com/{org}/{project}/_apis/projectanalysis/languagemetrics 根据我的测试,可以基于项目中的文件扩展名(如.js、.cs等)来检测使用的语言类型。参考文献: https://developercommunity.visualstudio.com/content/problem/379275/languages-in-project-overview-prediction-endpoint.html https://developercommunity.visualstudio.com/content/problem/601612/overview-languages-detected-not-detecting-all-lang.html Git仓库的Azure DevOps语言?