THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

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
pull/3695/merge
Lewis Cowles 7 months ago
parent
commit
c43399cad8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      routers/api/v1/repo/branch.go
  2. 1
    1
      templates/swagger/v1_json.tmpl

+ 1
- 1
routers/api/v1/repo/branch.go View File

@@ -16,7 +16,7 @@ import (
16 16
 func GetBranch(ctx *context.APIContext) {
17 17
 	// swagger:operation GET /repos/{owner}/{repo}/branches/{branch} repository repoGetBranch
18 18
 	// ---
19
-	// summary: List a repository's branches
19
+	// summary: Retrieve a specific branch from a repository
20 20
 	// produces:
21 21
 	// - application/json
22 22
 	// parameters:

+ 1
- 1
templates/swagger/v1_json.tmpl View File

@@ -1157,7 +1157,7 @@
1157 1157
         "tags": [
1158 1158
           "repository"
1159 1159
         ],
1160
-        "summary": "List a repository's branches",
1160
+        "summary": "Retrieve a specific branch from a repository",
1161 1161
         "operationId": "repoGetBranch",
1162 1162
         "parameters": [
1163 1163
           {

Loading…
Cancel
Save