forked from forgejo/forgejo
API: Return primary language and repository language stats API URL (#18396)
This commit is contained in:
parent
9628a76ce6
commit
6392f4691a
7 changed files with 55 additions and 2 deletions
|
@ -32,6 +32,11 @@ func listUserRepos(ctx *context.APIContext, u *user_model.User, private bool) {
|
|||
return
|
||||
}
|
||||
|
||||
if err := repos.LoadAttributes(); err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "RepositoryList.LoadAttributes", err)
|
||||
return
|
||||
}
|
||||
|
||||
apiRepos := make([]*api.Repository, 0, len(repos))
|
||||
for i := range repos {
|
||||
access, err := models.AccessLevel(ctx.User, repos[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue