Browse Source

Adds details about what tags can use the Git tags API (#7989)

tags/v1.10.0-rc1
Richard Mahn 4 years ago
parent
commit
bb5f7cdae6
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      routers/api/v1/repo/tag.go
  2. 2
    2
      templates/swagger/v1_json.tmpl

+ 2
- 2
routers/api/v1/repo/tag.go View 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:

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

@@ -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

Loading…
Cancel
Save