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:
// 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:
"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