mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 01:45:22 +02:00
Populate URL field of API commits (#3546)
* Populate URL field of API commits * fix orgmode_test
This commit is contained in:
parent
7b297808ce
commit
7b104f0cd0
11 changed files with 126 additions and 98 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue