]> source.dussan.org Git - gitea.git/commitdiff
Adds details about what tags can use the Git tags API (#7989)
authorRichard Mahn <richmahn@users.noreply.github.com>
Mon, 26 Aug 2019 19:52:04 +0000 (15:52 -0400)
committerAntoine GIRARD <sapk@users.noreply.github.com>
Mon, 26 Aug 2019 19:52:04 +0000 (21:52 +0200)
routers/api/v1/repo/tag.go
templates/swagger/v1_json.tmpl

index 1753402d3a8cfeec99248df4f794b46b963a9106..a802048285d69c55da4206231e474c2315d27c3d 100644 (file)
@@ -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:
index 2e4af809e8197c34f327e5286e3cdb29ffab9dec..8d164cd7e31fcd7b87dab50aff53d4ce7dd14648 100644 (file)
         "tags": [
           "repository"
         ],
-        "summary": "Gets the tag of a repository.",
+        "summary": "Gets the tag object of an annotated tag (not lightweight tags)",
         "operationId": "GetTag",
         "parameters": [
           {
           },
           {
             "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