summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLewis Cowles <lewiscowles@me.com>2018-09-09 04:36:08 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2018-09-09 11:36:08 +0800
commitc43399cad8766ee521b873a32c1652407c5a4630 (patch)
treeb6e4a8e848dbc40f7966ce4064ef8633231ccef4
parentd293a2b9d6722dffde7998c953c3087e47a38a83 (diff)
downloadgitea-c43399cad8766ee521b873a32c1652407c5a4630.tar.gz
gitea-c43399cad8766ee521b873a32c1652407c5a4630.zip
Fixes repo branch endpoint summary (#4893)
in browser saw `/repos/{owner}/{repo}/branches/{branch} List a repository's branches` fixed Addresses https://github.com/go-gitea/debian-packaging/pull/1 Fixes https://github.com/go-gitea/gitea#4892
-rw-r--r--routers/api/v1/repo/branch.go2
-rw-r--r--templates/swagger/v1_json.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go
index 96c2b02cb3..e8c965a814 100644
--- a/routers/api/v1/repo/branch.go
+++ b/routers/api/v1/repo/branch.go
@@ -16,7 +16,7 @@ import (
func GetBranch(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/branches/{branch} repository repoGetBranch
// ---
- // summary: List a repository's branches
+ // summary: Retrieve a specific branch from a repository
// produces:
// - application/json
// parameters:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index b4b65563dc..aa44e62c72 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -1157,7 +1157,7 @@
"tags": [
"repository"
],
- "summary": "List a repository's branches",
+ "summary": "Retrieve a specific branch from a repository",
"operationId": "repoGetBranch",
"parameters": [
{