mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Populate URL field of API commits (#3546)
* Populate URL field of API commits * fix orgmode_test
This commit is contained in:
@@ -61,7 +61,7 @@ func GetBranch(ctx *context.APIContext) {
|
||||
return
|
||||
}
|
||||
|
||||
ctx.JSON(200, convert.ToBranch(branch, c))
|
||||
ctx.JSON(200, convert.ToBranch(ctx.Repo.Repository, branch, c))
|
||||
}
|
||||
|
||||
// ListBranches list all the branches of a repository
|
||||
@@ -98,7 +98,7 @@ func ListBranches(ctx *context.APIContext) {
|
||||
ctx.Error(500, "GetCommit", err)
|
||||
return
|
||||
}
|
||||
apiBranches[i] = convert.ToBranch(branches[i], c)
|
||||
apiBranches[i] = convert.ToBranch(ctx.Repo.Repository, branches[i], c)
|
||||
}
|
||||
|
||||
ctx.JSON(200, &apiBranches)
|
||||
|
Reference in New Issue
Block a user