From c43399cad8766ee521b873a32c1652407c5a4630 Mon Sep 17 00:00:00 2001 From: Lewis Cowles Date: Sun, 9 Sep 2018 04:36:08 +0100 Subject: [PATCH] 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 --- routers/api/v1/repo/branch.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index 96c2b02cb..e8c965a81 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 b4b65563d..aa44e62c7 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": [ {