|
|
@ -51,7 +51,7 @@ func ListTags(ctx *context.APIContext) { |
|
|
|
func GetTag(ctx *context.APIContext) { |
|
|
|
func GetTag(ctx *context.APIContext) { |
|
|
|
// swagger:operation GET /repos/{owner}/{repo}/git/tags/{sha} repository GetTag
|
|
|
|
// 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:
|
|
|
|
// produces:
|
|
|
|
// - application/json
|
|
|
|
// - application/json
|
|
|
|
// parameters:
|
|
|
|
// parameters:
|
|
|
@ -67,7 +67,7 @@ func GetTag(ctx *context.APIContext) { |
|
|
|
// required: true
|
|
|
|
// required: true
|
|
|
|
// - name: sha
|
|
|
|
// - name: sha
|
|
|
|
// in: path
|
|
|
|
// 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
|
|
|
|
// type: string
|
|
|
|
// required: true
|
|
|
|
// required: true
|
|
|
|
// responses:
|
|
|
|
// responses:
|
|
|
|