diff options
author | Antoine GIRARD <sapk@sapk.fr> | 2016-01-16 10:28:59 +0100 |
---|---|---|
committer | Antoine GIRARD <sapk@sapk.fr> | 2016-01-28 20:51:19 +0100 |
commit | 303d091ea9d633f6e754aa33a7f6fe54b45fa73b (patch) | |
tree | 8221814123805fc134fe1a826ca9e63b59f52e82 | |
parent | c11c3b6c1125c8de1f86ea4d41eb88728d8e0b48 (diff) | |
download | gitea-303d091ea9d633f6e754aa33a7f6fe54b45fa73b.tar.gz gitea-303d091ea9d633f6e754aa33a7f6fe54b45fa73b.zip |
Update link for documentation (Temporary https://gist.github.com/sapk/df64347ff218baf4a277)
[ci skip]
-rw-r--r-- | routers/api/v1/repo/branch.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index ceff669656..7b745de5ff 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -5,15 +5,14 @@ package repo import ( - //TODO change for merge api "github.com/gogits/go-gogs-client" "github.com/gogits/gogs/modules/middleware" "github.com/gogits/gogs/routers/api/v1/convert" ) -//TODO add to github.com/gogits/go-gogs-client -// https://github.com/gogits/go-gogs-client/wiki/Repositories#get-branch +// Temporary: https://gist.github.com/sapk/df64347ff218baf4a277#get-a-branch +// https://github.com/gogits/go-gogs-client/wiki/Repositories-Branches#get-a-branch func GetBranch(ctx *middleware.Context) { branch, err := ctx.Repo.Repository.GetBranch(ctx.Params(":id")) if err != nil { @@ -28,11 +27,9 @@ func GetBranch(ctx *middleware.Context) { ctx.JSON(200, convert.ToApiBranch(branch,c)) } -//TODO add to github.com/gogits/go-gogs-client -// https://github.com/gogits/go-gogs-client/wiki/Repositories#list-branches +// Temporary: https://gist.github.com/sapk/df64347ff218baf4a277#list-branches +// https://github.com/gogits/go-gogs-client/wiki/Repositories-Branches#list-branches func ListBranches(ctx *middleware.Context) { - - Branches, err := ctx.Repo.Repository.GetBranches() if err != nil { //TODO handle error |