From 910733cb5c7a5e9c90027154b9841e5b34378c86 Mon Sep 17 00:00:00 2001 From: Richard Mahn Date: Mon, 26 Aug 2019 13:25:35 -0400 Subject: [PATCH] Adds details about what tags can use the Git tags API --- routers/api/v1/repo/tag.go | 4 ++-- templates/swagger/v1_json.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go index 1753402d3a8cf..a802048285d69 100644 --- a/routers/api/v1/repo/tag.go +++ b/routers/api/v1/repo/tag.go @@ -51,7 +51,7 @@ func ListTags(ctx *context.APIContext) { func GetTag(ctx *context.APIContext) { // swagger:operation GET /repos/{owner}/{repo}/git/tags/{sha} repository GetTag // --- - // summary: Gets the tag of a repository. + // summary: Gets the tag object of an annotated tag (not lightweight tags) // produces: // - application/json // parameters: @@ -67,7 +67,7 @@ func GetTag(ctx *context.APIContext) { // required: true // - name: sha // in: path - // description: sha of the tag + // description: sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. // type: string // required: true // responses: diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index de670156de9f3..eb6a2f2b17f8d 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -2166,7 +2166,7 @@ "tags": [ "repository" ], - "summary": "Gets the tag of a repository.", + "summary": "Gets the tag object of an annotated tag (not lightweight tags)", "operationId": "GetTag", "parameters": [ { @@ -2185,7 +2185,7 @@ }, { "type": "string", - "description": "sha of the tag", + "description": "sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.", "name": "sha", "in": "path", "required": true